@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 @@
|
|
|
1
|
+
{"version":3,"file":"workflow.entity.js","sourceRoot":"","sources":["../../src/entities/workflow.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAsF;AACtF,qCAOiB;AAEjB,sEAAiF;AACjF,iEAAsD;AACtD,2EAAgE;AAChE,iEAAsD;AACtD,uEAA4D;AAGrD,IAAM,QAAQ,GAAd,MAAM,QAAQ;IAEnB,EAAE,CAAS;IAKX,IAAI,CAAS;IAKb,WAAW,CAAU;IAIrB,MAAM,CAAU;IAQhB,aAAa,CAAiB;IAQ9B,MAAM,CAAkB;IAKxB,cAAc,CAAU;IAKxB,SAAS,CAAU;IAGnB,QAAQ,CAA0B;IAGlC,KAAK,CAAiB;IAGtB,KAAK,CAAiB;IAGtB,UAAU,CAAsB;IAGhC,QAAQ,CAAoB;IAQ5B,SAAS,CAAO;IAQhB,SAAS,CAAO;CACjB,CAAA;AA1EY,4BAAQ;AAEnB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;oCACpB;AAKX;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,GAAE;;sCACI;AAKb;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACN;AAIrB;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;wCACV;AAQhB;IANC,IAAA,wBAAM,EAAC,kCAAc,CAAC;IACtB,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,kCAAc;QACpB,OAAO,EAAE,kCAAc,CAAC,UAAU;KACnC,CAAC;;+CAC4B;AAQ9B;IANC,IAAA,wBAAM,EAAC,mCAAe,CAAC;IACvB,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,mCAAe;QACrB,OAAO,EAAE,mCAAe,CAAC,KAAK;KAC/B,CAAC;;wCACsB;AAKxB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACH;AAKxB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACR;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACR;AAGlC;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,mCAAY,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;uCACpD;AAGtB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,mCAAY,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;uCACpD;AAGtB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6CAAiB,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,QAAQ,CAAC;;4CACtC;AAGhC;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,yCAAe,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC;;0CACpC;AAQ5B;IANC,IAAA,0BAAgB,EAAC;QAChB,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,KAAK;QACf,IAAI,EAAE,aAAa;QACnB,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB;KACnC,CAAC;8BACS,IAAI;2CAAC;AAQhB;IANC,IAAA,0BAAgB,EAAC;QAChB,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,KAAK;QACf,IAAI,EAAE,aAAa;QACnB,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB;KACnC,CAAC;8BACS,IAAI;2CAAC;mBAzEL,QAAQ;IADpB,IAAA,gBAAM,EAAC,UAAU,CAAC;GACN,QAAQ,CA0EpB"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export * from './constants/workflow.constant';
|
|
2
|
+
export * from './dtos';
|
|
3
|
+
export * from './entities/workflow.entity';
|
|
4
|
+
export * from './entities/workflow-edge.entity';
|
|
5
|
+
export * from './entities/workflow-execution.entity';
|
|
6
|
+
export { WorkflowModule as WorkflowModuleEntity } from './entities/workflow-module.entity';
|
|
7
|
+
export * from './entities/workflow-module-credential.entity';
|
|
8
|
+
export * from './entities/workflow-node.entity';
|
|
9
|
+
export * from './entities/workflow-session.entity';
|
|
10
|
+
export * from './services/workflow.service';
|
|
11
|
+
export * from './services/workflow-edge.service';
|
|
12
|
+
export * from './services/workflow-execution.service';
|
|
13
|
+
export * from './services/workflow-module.service';
|
|
14
|
+
export * from './services/workflow-module-credential.service';
|
|
15
|
+
export * from './services/workflow-node.service';
|
|
16
|
+
export * from './services/workflow-session.service';
|
|
17
|
+
export * from './modules';
|
|
18
|
+
export * from './workflow.module';
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,+BAA+B,CAAC;AAG9C,cAAc,QAAQ,CAAC;AAGvB,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,sCAAsC,CAAC;AACrD,OAAO,EAAE,cAAc,IAAI,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAC3F,cAAc,8CAA8C,CAAC;AAC7D,cAAc,iCAAiC,CAAC;AAChD,cAAc,oCAAoC,CAAC;AAGnD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC;AACjD,cAAc,uCAAuC,CAAC;AACtD,cAAc,oCAAoC,CAAC;AACnD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,kCAAkC,CAAC;AACjD,cAAc,qCAAqC,CAAC;AAGpD,cAAc,WAAW,CAAC;AAG1B,cAAc,mBAAmB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.WorkflowModuleEntity = void 0;
|
|
18
|
+
__exportStar(require("./constants/workflow.constant"), exports);
|
|
19
|
+
__exportStar(require("./dtos"), exports);
|
|
20
|
+
__exportStar(require("./entities/workflow.entity"), exports);
|
|
21
|
+
__exportStar(require("./entities/workflow-edge.entity"), exports);
|
|
22
|
+
__exportStar(require("./entities/workflow-execution.entity"), exports);
|
|
23
|
+
var workflow_module_entity_1 = require("./entities/workflow-module.entity");
|
|
24
|
+
Object.defineProperty(exports, "WorkflowModuleEntity", { enumerable: true, get: function () { return workflow_module_entity_1.WorkflowModule; } });
|
|
25
|
+
__exportStar(require("./entities/workflow-module-credential.entity"), exports);
|
|
26
|
+
__exportStar(require("./entities/workflow-node.entity"), exports);
|
|
27
|
+
__exportStar(require("./entities/workflow-session.entity"), exports);
|
|
28
|
+
__exportStar(require("./services/workflow.service"), exports);
|
|
29
|
+
__exportStar(require("./services/workflow-edge.service"), exports);
|
|
30
|
+
__exportStar(require("./services/workflow-execution.service"), exports);
|
|
31
|
+
__exportStar(require("./services/workflow-module.service"), exports);
|
|
32
|
+
__exportStar(require("./services/workflow-module-credential.service"), exports);
|
|
33
|
+
__exportStar(require("./services/workflow-node.service"), exports);
|
|
34
|
+
__exportStar(require("./services/workflow-session.service"), exports);
|
|
35
|
+
__exportStar(require("./modules"), exports);
|
|
36
|
+
__exportStar(require("./workflow.module"), exports);
|
|
37
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,gEAA8C;AAG9C,yCAAuB;AAGvB,6DAA2C;AAC3C,kEAAgD;AAChD,uEAAqD;AACrD,4EAA2F;AAAlF,8HAAA,cAAc,OAAwB;AAC/C,+EAA6D;AAC7D,kEAAgD;AAChD,qEAAmD;AAGnD,8DAA4C;AAC5C,mEAAiD;AACjD,wEAAsD;AACtD,qEAAmD;AACnD,gFAA8D;AAC9D,mEAAiD;AACjD,sEAAoD;AAGpD,4CAA0B;AAG1B,oDAAkC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analyze-sentiment.action.d.ts","sourceRoot":"","sources":["../../../../src/modules/ai/actions/analyze-sentiment.action.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAG/E,eAAO,MAAM,sBAAsB,EAAE,qBAoDpC,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.analyzeSentimentAction = void 0;
|
|
4
|
+
const types_1 = require("../../types");
|
|
5
|
+
const analyze_sentiment_service_1 = require("../services/analyze-sentiment.service");
|
|
6
|
+
exports.analyzeSentimentAction = {
|
|
7
|
+
id: 'analyze-sentiment',
|
|
8
|
+
name: 'Analyze Sentiment',
|
|
9
|
+
description: 'Analyze the sentiment of text',
|
|
10
|
+
category: types_1.NODE_CATEGORY.ACTION,
|
|
11
|
+
icon: '😊',
|
|
12
|
+
serviceClass: analyze_sentiment_service_1.AnalyzeSentimentService,
|
|
13
|
+
inputs: [
|
|
14
|
+
{
|
|
15
|
+
id: 'text',
|
|
16
|
+
name: 'Text',
|
|
17
|
+
description: 'Text to analyze',
|
|
18
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
19
|
+
validation: {
|
|
20
|
+
required: true,
|
|
21
|
+
minLength: 1,
|
|
22
|
+
maxLength: 5000,
|
|
23
|
+
},
|
|
24
|
+
placeholder: 'Enter text to analyze...',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
id: 'model',
|
|
28
|
+
name: 'Model',
|
|
29
|
+
description: 'AI model to use',
|
|
30
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
31
|
+
validation: {
|
|
32
|
+
required: true,
|
|
33
|
+
enum: ['gpt-4', 'gpt-3.5-turbo', 'claude-3'],
|
|
34
|
+
},
|
|
35
|
+
defaultValue: 'gpt-4',
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
outputs: [
|
|
39
|
+
{
|
|
40
|
+
id: 'sentiment',
|
|
41
|
+
name: 'Sentiment',
|
|
42
|
+
description: 'Sentiment classification (positive, negative, neutral)',
|
|
43
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
id: 'score',
|
|
47
|
+
name: 'Sentiment Score',
|
|
48
|
+
description: 'Sentiment score from -1 to 1',
|
|
49
|
+
type: types_1.FIELD_TYPE.NUMBER,
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
id: 'confidence',
|
|
53
|
+
name: 'Confidence',
|
|
54
|
+
description: 'Confidence level (0 to 1)',
|
|
55
|
+
type: types_1.FIELD_TYPE.NUMBER,
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=analyze-sentiment.action.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analyze-sentiment.action.js","sourceRoot":"","sources":["../../../../src/modules/ai/actions/analyze-sentiment.action.ts"],"names":[],"mappings":";;;AAAA,uCAA+E;AAC/E,qFAAgF;AAEnE,QAAA,sBAAsB,GAA0B;IAC3D,EAAE,EAAE,mBAAmB;IACvB,IAAI,EAAE,mBAAmB;IACzB,WAAW,EAAE,+BAA+B;IAC5C,QAAQ,EAAE,qBAAa,CAAC,MAAM;IAC9B,IAAI,EAAE,IAAI;IACV,YAAY,EAAE,mDAAuB;IACrC,MAAM,EAAE;QACN;YACE,EAAE,EAAE,MAAM;YACV,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,iBAAiB;YAC9B,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,IAAI;gBACd,SAAS,EAAE,CAAC;gBACZ,SAAS,EAAE,IAAI;aAChB;YACD,WAAW,EAAE,0BAA0B;SACxC;QACD;YACE,EAAE,EAAE,OAAO;YACX,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,iBAAiB;YAC9B,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE,CAAC,OAAO,EAAE,eAAe,EAAE,UAAU,CAAC;aAC7C;YACD,YAAY,EAAE,OAAO;SACtB;KACF;IACD,OAAO,EAAE;QACP;YACE,EAAE,EAAE,WAAW;YACf,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,wDAAwD;YACrE,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,OAAO;YACX,IAAI,EAAE,iBAAiB;YACvB,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,YAAY;YAChB,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,2BAA2B;YACxC,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-text.action.d.ts","sourceRoot":"","sources":["../../../../src/modules/ai/actions/generate-text.action.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAG/E,eAAO,MAAM,kBAAkB,EAAE,qBAkFhC,CAAC"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.generateTextAction = void 0;
|
|
4
|
+
const types_1 = require("../../types");
|
|
5
|
+
const generate_text_service_1 = require("../services/generate-text.service");
|
|
6
|
+
exports.generateTextAction = {
|
|
7
|
+
id: 'generate-text',
|
|
8
|
+
name: 'Generate Text',
|
|
9
|
+
description: 'Generate text using AI',
|
|
10
|
+
category: types_1.NODE_CATEGORY.ACTION,
|
|
11
|
+
icon: '✨',
|
|
12
|
+
serviceClass: generate_text_service_1.GenerateTextService,
|
|
13
|
+
inputs: [
|
|
14
|
+
{
|
|
15
|
+
id: 'model',
|
|
16
|
+
name: 'Model',
|
|
17
|
+
description: 'AI model to use',
|
|
18
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
19
|
+
validation: {
|
|
20
|
+
required: true,
|
|
21
|
+
enum: ['gpt-4', 'gpt-3.5-turbo', 'claude-3', 'claude-2'],
|
|
22
|
+
},
|
|
23
|
+
defaultValue: 'gpt-4',
|
|
24
|
+
options: [
|
|
25
|
+
{ label: 'GPT-4', value: 'gpt-4' },
|
|
26
|
+
{ label: 'GPT-3.5 Turbo', value: 'gpt-3.5-turbo' },
|
|
27
|
+
{ label: 'Claude 3', value: 'claude-3' },
|
|
28
|
+
{ label: 'Claude 2', value: 'claude-2' },
|
|
29
|
+
],
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
id: 'prompt',
|
|
33
|
+
name: 'Prompt',
|
|
34
|
+
description: 'The prompt to send to the AI',
|
|
35
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
36
|
+
validation: {
|
|
37
|
+
required: true,
|
|
38
|
+
minLength: 1,
|
|
39
|
+
maxLength: 10000,
|
|
40
|
+
},
|
|
41
|
+
placeholder: 'Enter your prompt...',
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
id: 'temperature',
|
|
45
|
+
name: 'Temperature',
|
|
46
|
+
description: 'Controls randomness (0.0 to 1.0)',
|
|
47
|
+
type: types_1.FIELD_TYPE.NUMBER,
|
|
48
|
+
validation: {
|
|
49
|
+
required: false,
|
|
50
|
+
min: 0,
|
|
51
|
+
max: 1,
|
|
52
|
+
},
|
|
53
|
+
defaultValue: 0.7,
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
id: 'maxTokens',
|
|
57
|
+
name: 'Max Tokens',
|
|
58
|
+
description: 'Maximum number of tokens to generate',
|
|
59
|
+
type: types_1.FIELD_TYPE.NUMBER,
|
|
60
|
+
validation: {
|
|
61
|
+
required: false,
|
|
62
|
+
min: 1,
|
|
63
|
+
max: 4000,
|
|
64
|
+
},
|
|
65
|
+
defaultValue: 1000,
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
outputs: [
|
|
69
|
+
{
|
|
70
|
+
id: 'generatedText',
|
|
71
|
+
name: 'Generated Text',
|
|
72
|
+
description: 'The text generated by the AI',
|
|
73
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
id: 'tokensUsed',
|
|
77
|
+
name: 'Tokens Used',
|
|
78
|
+
description: 'Number of tokens consumed',
|
|
79
|
+
type: types_1.FIELD_TYPE.NUMBER,
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
id: 'model',
|
|
83
|
+
name: 'Model Used',
|
|
84
|
+
description: 'The model that was used',
|
|
85
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
86
|
+
},
|
|
87
|
+
],
|
|
88
|
+
};
|
|
89
|
+
//# sourceMappingURL=generate-text.action.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-text.action.js","sourceRoot":"","sources":["../../../../src/modules/ai/actions/generate-text.action.ts"],"names":[],"mappings":";;;AAAA,uCAA+E;AAC/E,6EAAwE;AAE3D,QAAA,kBAAkB,GAA0B;IACvD,EAAE,EAAE,eAAe;IACnB,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,wBAAwB;IACrC,QAAQ,EAAE,qBAAa,CAAC,MAAM;IAC9B,IAAI,EAAE,GAAG;IACT,YAAY,EAAE,2CAAmB;IACjC,MAAM,EAAE;QACN;YACE,EAAE,EAAE,OAAO;YACX,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,iBAAiB;YAC9B,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE,CAAC,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,CAAC;aACzD;YACD,YAAY,EAAE,OAAO;YACrB,OAAO,EAAE;gBACP,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;gBAClC,EAAE,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,eAAe,EAAE;gBAClD,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;gBACxC,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;aACzC;SACF;QACD;YACE,EAAE,EAAE,QAAQ;YACZ,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,IAAI;gBACd,SAAS,EAAE,CAAC;gBACZ,SAAS,EAAE,KAAK;aACjB;YACD,WAAW,EAAE,sBAAsB;SACpC;QACD;YACE,EAAE,EAAE,aAAa;YACjB,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,kCAAkC;YAC/C,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,KAAK;gBACf,GAAG,EAAE,CAAC;gBACN,GAAG,EAAE,CAAC;aACP;YACD,YAAY,EAAE,GAAG;SAClB;QACD;YACE,EAAE,EAAE,WAAW;YACf,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,KAAK;gBACf,GAAG,EAAE,CAAC;gBACN,GAAG,EAAE,IAAI;aACV;YACD,YAAY,EAAE,IAAI;SACnB;KACF;IACD,OAAO,EAAE;QACP;YACE,EAAE,EAAE,eAAe;YACnB,IAAI,EAAE,gBAAgB;YACtB,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,YAAY;YAChB,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,2BAA2B;YACxC,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,OAAO;YACX,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,yBAAyB;YACtC,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/ai/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./analyze-sentiment.action"), exports);
|
|
18
|
+
__exportStar(require("./generate-text.action"), exports);
|
|
19
|
+
__exportStar(require("./summarize.action"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/ai/actions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,yDAAuC;AACvC,qDAAmC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"summarize.action.d.ts","sourceRoot":"","sources":["../../../../src/modules/ai/actions/summarize.action.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAG/E,eAAO,MAAM,eAAe,EAAE,qBAqD7B,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.summarizeAction = void 0;
|
|
4
|
+
const types_1 = require("../../types");
|
|
5
|
+
const summarize_service_1 = require("../services/summarize.service");
|
|
6
|
+
exports.summarizeAction = {
|
|
7
|
+
id: 'summarize',
|
|
8
|
+
name: 'Summarize Text',
|
|
9
|
+
description: 'Create a summary of text',
|
|
10
|
+
category: types_1.NODE_CATEGORY.ACTION,
|
|
11
|
+
icon: '📝',
|
|
12
|
+
serviceClass: summarize_service_1.SummarizeService,
|
|
13
|
+
inputs: [
|
|
14
|
+
{
|
|
15
|
+
id: 'text',
|
|
16
|
+
name: 'Text',
|
|
17
|
+
description: 'Text to summarize',
|
|
18
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
19
|
+
validation: {
|
|
20
|
+
required: true,
|
|
21
|
+
minLength: 1,
|
|
22
|
+
maxLength: 50000,
|
|
23
|
+
},
|
|
24
|
+
placeholder: 'Enter text to summarize...',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
id: 'maxLength',
|
|
28
|
+
name: 'Max Summary Length',
|
|
29
|
+
description: 'Maximum length of summary in words',
|
|
30
|
+
type: types_1.FIELD_TYPE.NUMBER,
|
|
31
|
+
validation: {
|
|
32
|
+
required: false,
|
|
33
|
+
min: 10,
|
|
34
|
+
max: 1000,
|
|
35
|
+
},
|
|
36
|
+
defaultValue: 100,
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
outputs: [
|
|
40
|
+
{
|
|
41
|
+
id: 'summary',
|
|
42
|
+
name: 'Summary',
|
|
43
|
+
description: 'The generated summary',
|
|
44
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
id: 'originalLength',
|
|
48
|
+
name: 'Original Length',
|
|
49
|
+
description: 'Length of original text in words',
|
|
50
|
+
type: types_1.FIELD_TYPE.NUMBER,
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
id: 'summaryLength',
|
|
54
|
+
name: 'Summary Length',
|
|
55
|
+
description: 'Length of summary in words',
|
|
56
|
+
type: types_1.FIELD_TYPE.NUMBER,
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=summarize.action.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"summarize.action.js","sourceRoot":"","sources":["../../../../src/modules/ai/actions/summarize.action.ts"],"names":[],"mappings":";;;AAAA,uCAA+E;AAC/E,qEAAiE;AAEpD,QAAA,eAAe,GAA0B;IACpD,EAAE,EAAE,WAAW;IACf,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,0BAA0B;IACvC,QAAQ,EAAE,qBAAa,CAAC,MAAM;IAC9B,IAAI,EAAE,IAAI;IACV,YAAY,EAAE,oCAAgB;IAC9B,MAAM,EAAE;QACN;YACE,EAAE,EAAE,MAAM;YACV,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,mBAAmB;YAChC,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,IAAI;gBACd,SAAS,EAAE,CAAC;gBACZ,SAAS,EAAE,KAAK;aACjB;YACD,WAAW,EAAE,4BAA4B;SAC1C;QACD;YACE,EAAE,EAAE,WAAW;YACf,IAAI,EAAE,oBAAoB;YAC1B,WAAW,EAAE,oCAAoC;YACjD,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,KAAK;gBACf,GAAG,EAAE,EAAE;gBACP,GAAG,EAAE,IAAI;aACV;YACD,YAAY,EAAE,GAAG;SAClB;KACF;IACD,OAAO,EAAE;QACP;YACE,EAAE,EAAE,SAAS;YACb,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,gBAAgB;YACpB,IAAI,EAAE,iBAAiB;YACvB,WAAW,EAAE,kCAAkC;YAC/C,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,eAAe;YACnB,IAAI,EAAE,gBAAgB;YACtB,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai.module.d.ts","sourceRoot":"","sources":["../../../src/modules/ai/ai.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAMpD,eAAO,MAAM,QAAQ,EAAE,wBAUtB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.aiModule = void 0;
|
|
4
|
+
const actions_1 = require("./actions");
|
|
5
|
+
const ai_auth_service_1 = require("./auth/ai-auth.service");
|
|
6
|
+
const credentials_1 = require("./credentials");
|
|
7
|
+
const triggers_1 = require("./triggers");
|
|
8
|
+
exports.aiModule = {
|
|
9
|
+
id: 'ai',
|
|
10
|
+
name: 'AI',
|
|
11
|
+
description: 'Process data using AI models',
|
|
12
|
+
icon: '🤖',
|
|
13
|
+
version: '1.0.0',
|
|
14
|
+
credentialFields: credentials_1.aiCredentials,
|
|
15
|
+
authServiceClass: ai_auth_service_1.AiAuthService,
|
|
16
|
+
actions: [actions_1.generateTextAction, actions_1.analyzeSentimentAction, actions_1.summarizeAction],
|
|
17
|
+
triggers: triggers_1.aiTriggers,
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=ai.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai.module.js","sourceRoot":"","sources":["../../../src/modules/ai/ai.module.ts"],"names":[],"mappings":";;;AACA,uCAAwF;AACxF,4DAAuD;AACvD,+CAA8C;AAC9C,yCAAwC;AAE3B,QAAA,QAAQ,GAA6B;IAChD,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,IAAI;IACV,WAAW,EAAE,8BAA8B;IAC3C,IAAI,EAAE,IAAI;IACV,OAAO,EAAE,OAAO;IAChB,gBAAgB,EAAE,2BAAa;IAC/B,gBAAgB,EAAE,+BAAa;IAC/B,OAAO,EAAE,CAAC,4BAAkB,EAAE,gCAAsB,EAAE,yBAAe,CAAC;IACtE,QAAQ,EAAE,qBAAU;CACrB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CredentialAuthResult, IWorkflowCredentialAuthService } from '../../types';
|
|
2
|
+
export declare class AiAuthService implements IWorkflowCredentialAuthService {
|
|
3
|
+
authenticate(credentials: Record<string, unknown>): Promise<CredentialAuthResult>;
|
|
4
|
+
}
|
|
5
|
+
//# sourceMappingURL=ai-auth.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-auth.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/ai/auth/ai-auth.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAC;AAEnF,qBACa,aAAc,YAAW,8BAA8B;IAC5D,YAAY,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAmDxF"}
|
|
@@ -0,0 +1,41 @@
|
|
|
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.AiAuthService = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
let AiAuthService = class AiAuthService {
|
|
12
|
+
async authenticate(credentials) {
|
|
13
|
+
try {
|
|
14
|
+
const apiKey = credentials.apiKey;
|
|
15
|
+
const _apiUrl = credentials.apiUrl || 'https://api.openai.com/v1';
|
|
16
|
+
if (!apiKey || apiKey.trim().length === 0) {
|
|
17
|
+
return {
|
|
18
|
+
success: false,
|
|
19
|
+
message: 'API key is required',
|
|
20
|
+
error: 'MISSING_API_KEY',
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
success: true,
|
|
25
|
+
message: 'Credentials validated successfully',
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
catch (error) {
|
|
29
|
+
return {
|
|
30
|
+
success: false,
|
|
31
|
+
message: error instanceof Error ? error.message : 'Unknown error occurred',
|
|
32
|
+
error: 'AUTH_ERROR',
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
exports.AiAuthService = AiAuthService;
|
|
38
|
+
exports.AiAuthService = AiAuthService = __decorate([
|
|
39
|
+
(0, common_1.Injectable)()
|
|
40
|
+
], AiAuthService);
|
|
41
|
+
//# sourceMappingURL=ai-auth.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-auth.service.js","sourceRoot":"","sources":["../../../../src/modules/ai/auth/ai-auth.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAKrC,IAAM,aAAa,GAAnB,MAAM,aAAa;IACxB,KAAK,CAAC,YAAY,CAAC,WAAoC;QACrD,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,WAAW,CAAC,MAAgB,CAAC;YAC5C,MAAM,OAAO,GAAI,WAAW,CAAC,MAAiB,IAAI,2BAA2B,CAAC;YAE9E,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAC1C,OAAO;oBACL,OAAO,EAAE,KAAK;oBACd,OAAO,EAAE,qBAAqB;oBAC9B,KAAK,EAAE,iBAAiB;iBACzB,CAAC;YACJ,CAAC;YA4BD,OAAO;gBACL,OAAO,EAAE,IAAI;gBACb,OAAO,EAAE,oCAAoC;aAC9C,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,KAAK;gBACd,OAAO,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,wBAAwB;gBAC1E,KAAK,EAAE,YAAY;aACpB,CAAC;QACJ,CAAC;IACH,CAAC;CACF,CAAA;AApDY,sCAAa;wBAAb,aAAa;IADzB,IAAA,mBAAU,GAAE;GACA,aAAa,CAoDzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/ai/auth/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ai-auth.service"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/ai/auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../../src/modules/ai/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAc,MAAM,UAAU,CAAC;AAEjE,eAAO,MAAM,aAAa,EAAE,yBAAyB,EA0BpD,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.aiCredentials = void 0;
|
|
4
|
+
const types_1 = require("../types");
|
|
5
|
+
exports.aiCredentials = [
|
|
6
|
+
{
|
|
7
|
+
id: 'apiKey',
|
|
8
|
+
name: 'API Key',
|
|
9
|
+
description: 'API key for the AI service',
|
|
10
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
11
|
+
validation: {
|
|
12
|
+
required: true,
|
|
13
|
+
minLength: 1,
|
|
14
|
+
},
|
|
15
|
+
placeholder: 'Enter your API key',
|
|
16
|
+
sensitive: true,
|
|
17
|
+
required: true,
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
id: 'apiUrl',
|
|
21
|
+
name: 'API URL',
|
|
22
|
+
description: 'Base URL for the AI service API (optional)',
|
|
23
|
+
type: types_1.FIELD_TYPE.URL,
|
|
24
|
+
validation: {
|
|
25
|
+
required: false,
|
|
26
|
+
},
|
|
27
|
+
placeholder: 'https://api.example.com',
|
|
28
|
+
sensitive: false,
|
|
29
|
+
required: false,
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
//# sourceMappingURL=credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentials.js","sourceRoot":"","sources":["../../../src/modules/ai/credentials.ts"],"names":[],"mappings":";;;AAAA,oCAAiE;AAEpD,QAAA,aAAa,GAAgC;IACxD;QACE,EAAE,EAAE,QAAQ;QACZ,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,4BAA4B;QACzC,IAAI,EAAE,kBAAU,CAAC,MAAM;QACvB,UAAU,EAAE;YACV,QAAQ,EAAE,IAAI;YACd,SAAS,EAAE,CAAC;SACb;QACD,WAAW,EAAE,oBAAoB;QACjC,SAAS,EAAE,IAAI;QACf,QAAQ,EAAE,IAAI;KACf;IACD;QACE,EAAE,EAAE,QAAQ;QACZ,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,4CAA4C;QACzD,IAAI,EAAE,kBAAU,CAAC,GAAG;QACpB,UAAU,EAAE;YACV,QAAQ,EAAE,KAAK;SAChB;QACD,WAAW,EAAE,yBAAyB;QACtC,SAAS,EAAE,KAAK;QAChB,QAAQ,EAAE,KAAK;KAChB;CACF,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IWorkflowActionService, WorkflowActionContext } from '../../types';
|
|
2
|
+
export declare class AnalyzeSentimentService implements IWorkflowActionService {
|
|
3
|
+
perform(inputs: Record<string, unknown>, _context: WorkflowActionContext): Promise<Record<string, unknown>>;
|
|
4
|
+
}
|
|
5
|
+
//# sourceMappingURL=analyze-sentiment.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analyze-sentiment.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/ai/services/analyze-sentiment.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAE5E,qBACa,uBAAwB,YAAW,sBAAsB;IAC9D,OAAO,CACX,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,QAAQ,EAAE,qBAAqB,GAC9B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAepC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
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.AnalyzeSentimentService = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
let AnalyzeSentimentService = class AnalyzeSentimentService {
|
|
12
|
+
async perform(inputs, _context) {
|
|
13
|
+
const _text = inputs.text;
|
|
14
|
+
const _model = inputs.model;
|
|
15
|
+
const _apiKey = _context.credentials?.apiKey;
|
|
16
|
+
return {
|
|
17
|
+
sentiment: 'neutral',
|
|
18
|
+
score: 0,
|
|
19
|
+
confidence: 0.5,
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
exports.AnalyzeSentimentService = AnalyzeSentimentService;
|
|
24
|
+
exports.AnalyzeSentimentService = AnalyzeSentimentService = __decorate([
|
|
25
|
+
(0, common_1.Injectable)()
|
|
26
|
+
], AnalyzeSentimentService);
|
|
27
|
+
//# sourceMappingURL=analyze-sentiment.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analyze-sentiment.service.js","sourceRoot":"","sources":["../../../../src/modules/ai/services/analyze-sentiment.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAKrC,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAClC,KAAK,CAAC,OAAO,CACX,MAA+B,EAC/B,QAA+B;QAG/B,MAAM,KAAK,GAAG,MAAM,CAAC,IAAc,CAAC;QACpC,MAAM,MAAM,GAAG,MAAM,CAAC,KAAe,CAAC;QACtC,MAAM,OAAO,GAAG,QAAQ,CAAC,WAAW,EAAE,MAAgB,CAAC;QAKvD,OAAO;YACL,SAAS,EAAE,SAAS;YACpB,KAAK,EAAE,CAAC;YACR,UAAU,EAAE,GAAG;SAChB,CAAC;IACJ,CAAC;CACF,CAAA;AAnBY,0DAAuB;kCAAvB,uBAAuB;IADnC,IAAA,mBAAU,GAAE;GACA,uBAAuB,CAmBnC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IWorkflowActionService, WorkflowActionContext } from '../../types';
|
|
2
|
+
export declare class GenerateTextService implements IWorkflowActionService {
|
|
3
|
+
perform(inputs: Record<string, unknown>, context: WorkflowActionContext): Promise<Record<string, unknown>>;
|
|
4
|
+
}
|
|
5
|
+
//# sourceMappingURL=generate-text.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-text.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/ai/services/generate-text.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAE5E,qBACa,mBAAoB,YAAW,sBAAsB;IAC1D,OAAO,CACX,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAmBpC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.GenerateTextService = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
let GenerateTextService = class GenerateTextService {
|
|
12
|
+
async perform(inputs, context) {
|
|
13
|
+
const model = inputs.model;
|
|
14
|
+
const _prompt = inputs.prompt;
|
|
15
|
+
const _temperature = inputs.temperature || 0.7;
|
|
16
|
+
const _maxTokens = inputs.maxTokens || 1000;
|
|
17
|
+
const _apiKey = context.credentials?.apiKey;
|
|
18
|
+
return {
|
|
19
|
+
generatedText: '',
|
|
20
|
+
tokensUsed: 0,
|
|
21
|
+
model,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
exports.GenerateTextService = GenerateTextService;
|
|
26
|
+
exports.GenerateTextService = GenerateTextService = __decorate([
|
|
27
|
+
(0, common_1.Injectable)()
|
|
28
|
+
], GenerateTextService);
|
|
29
|
+
//# sourceMappingURL=generate-text.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-text.service.js","sourceRoot":"","sources":["../../../../src/modules/ai/services/generate-text.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAKrC,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC9B,KAAK,CAAC,OAAO,CACX,MAA+B,EAC/B,OAA8B;QAI9B,MAAM,KAAK,GAAG,MAAM,CAAC,KAAe,CAAC;QACrC,MAAM,OAAO,GAAG,MAAM,CAAC,MAAgB,CAAC;QACxC,MAAM,YAAY,GAAI,MAAM,CAAC,WAAsB,IAAI,GAAG,CAAC;QAC3D,MAAM,UAAU,GAAI,MAAM,CAAC,SAAoB,IAAI,IAAI,CAAC;QACxD,MAAM,OAAO,GAAG,OAAO,CAAC,WAAW,EAAE,MAAgB,CAAC;QAMtD,OAAO;YACL,aAAa,EAAE,EAAE;YACjB,UAAU,EAAE,CAAC;YACb,KAAK;SACN,CAAC;IACJ,CAAC;CACF,CAAA;AAvBY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,mBAAU,GAAE;GACA,mBAAmB,CAuB/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/ai/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC"}
|