@venturialstd/workflow 0.1.92 → 0.1.93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +238 -238
- package/dist/controllers/workflow-sse.controller.d.ts +8 -0
- package/dist/controllers/workflow-sse.controller.d.ts.map +1 -0
- package/dist/controllers/workflow-sse.controller.js +46 -0
- package/dist/controllers/workflow-sse.controller.js.map +1 -0
- package/dist/modules/circle/actions/create-transaction.action.d.ts.map +1 -1
- package/dist/modules/circle/actions/create-transaction.action.js +57 -7
- package/dist/modules/circle/actions/create-transaction.action.js.map +1 -1
- package/dist/modules/circle/actions/get-token.action.d.ts +3 -0
- package/dist/modules/circle/actions/get-token.action.d.ts.map +1 -0
- package/dist/modules/circle/actions/get-token.action.js +94 -0
- package/dist/modules/circle/actions/get-token.action.js.map +1 -0
- package/dist/modules/circle/actions/index.d.ts +1 -0
- package/dist/modules/circle/actions/index.d.ts.map +1 -1
- package/dist/modules/circle/actions/index.js +1 -0
- package/dist/modules/circle/actions/index.js.map +1 -1
- package/dist/modules/circle/circle-nest.module.d.ts.map +1 -1
- package/dist/modules/circle/circle-nest.module.js +2 -0
- package/dist/modules/circle/circle-nest.module.js.map +1 -1
- package/dist/modules/circle/circle.module.d.ts.map +1 -1
- package/dist/modules/circle/circle.module.js +1 -0
- package/dist/modules/circle/circle.module.js.map +1 -1
- package/dist/modules/circle/services/create-transaction.service.d.ts.map +1 -1
- package/dist/modules/circle/services/create-transaction.service.js +22 -1
- package/dist/modules/circle/services/create-transaction.service.js.map +1 -1
- package/dist/modules/circle/services/get-token.service.d.ts +8 -0
- package/dist/modules/circle/services/get-token.service.d.ts.map +1 -0
- package/dist/modules/circle/services/get-token.service.js +51 -0
- package/dist/modules/circle/services/get-token.service.js.map +1 -0
- package/dist/modules/circle/services/index.d.ts +1 -0
- package/dist/modules/circle/services/index.d.ts.map +1 -1
- package/dist/modules/circle/services/index.js +1 -0
- package/dist/modules/circle/services/index.js.map +1 -1
- package/dist/modules/conditional/actions/index.d.ts +1 -0
- package/dist/modules/conditional/actions/index.d.ts.map +1 -1
- package/dist/modules/conditional/actions/index.js +1 -0
- package/dist/modules/conditional/actions/index.js.map +1 -1
- package/dist/modules/conditional/actions/map-value.action.d.ts +3 -0
- package/dist/modules/conditional/actions/map-value.action.d.ts.map +1 -0
- package/dist/modules/conditional/actions/map-value.action.js +122 -0
- package/dist/modules/conditional/actions/map-value.action.js.map +1 -0
- package/dist/modules/conditional/conditional-nest.module.d.ts.map +1 -1
- package/dist/modules/conditional/conditional-nest.module.js +7 -2
- package/dist/modules/conditional/conditional-nest.module.js.map +1 -1
- package/dist/modules/conditional/conditional.module.js +1 -1
- package/dist/modules/conditional/conditional.module.js.map +1 -1
- package/dist/modules/conditional/services/evaluate-condition.service.d.ts.map +1 -1
- package/dist/modules/conditional/services/evaluate-condition.service.js +11 -1
- package/dist/modules/conditional/services/evaluate-condition.service.js.map +1 -1
- package/dist/modules/conditional/services/index.d.ts +1 -0
- package/dist/modules/conditional/services/index.d.ts.map +1 -1
- package/dist/modules/conditional/services/index.js +1 -0
- package/dist/modules/conditional/services/index.js.map +1 -1
- package/dist/modules/conditional/services/map-value.service.d.ts +5 -0
- package/dist/modules/conditional/services/map-value.service.d.ts.map +1 -0
- package/dist/modules/conditional/services/map-value.service.js +108 -0
- package/dist/modules/conditional/services/map-value.service.js.map +1 -0
- package/dist/modules/events/actions/send-event.action.js +3 -3
- package/dist/modules/events/actions/send-event.action.js.map +1 -1
- package/dist/modules/events/services/send-event.service.d.ts +1 -0
- package/dist/modules/events/services/send-event.service.d.ts.map +1 -1
- package/dist/modules/events/services/send-event.service.js +36 -7
- package/dist/modules/events/services/send-event.service.js.map +1 -1
- package/dist/modules/fintech/actions/add-balance.action.js +4 -4
- package/dist/modules/fintech/actions/add-balance.action.js.map +1 -1
- package/dist/modules/fintech/actions/complete-remittance.action.d.ts +3 -0
- package/dist/modules/fintech/actions/complete-remittance.action.d.ts.map +1 -0
- package/dist/modules/fintech/actions/complete-remittance.action.js +93 -0
- package/dist/modules/fintech/actions/complete-remittance.action.js.map +1 -0
- package/dist/modules/fintech/actions/create-operation.action.d.ts.map +1 -1
- package/dist/modules/fintech/actions/create-operation.action.js +33 -12
- package/dist/modules/fintech/actions/create-operation.action.js.map +1 -1
- package/dist/modules/fintech/actions/create-remittance.action.d.ts +3 -0
- package/dist/modules/fintech/actions/create-remittance.action.d.ts.map +1 -0
- package/dist/modules/fintech/actions/create-remittance.action.js +208 -0
- package/dist/modules/fintech/actions/create-remittance.action.js.map +1 -0
- package/dist/modules/fintech/actions/create-transaction.action.d.ts.map +1 -1
- package/dist/modules/fintech/actions/create-transaction.action.js +30 -8
- package/dist/modules/fintech/actions/create-transaction.action.js.map +1 -1
- package/dist/modules/fintech/actions/get-currency-by-type-and-code.action.d.ts +3 -0
- package/dist/modules/fintech/actions/get-currency-by-type-and-code.action.d.ts.map +1 -0
- package/dist/modules/fintech/actions/get-currency-by-type-and-code.action.js +80 -0
- package/dist/modules/fintech/actions/get-currency-by-type-and-code.action.js.map +1 -0
- package/dist/modules/fintech/actions/get-latest-remittances-by-account.action.d.ts +3 -0
- package/dist/modules/fintech/actions/get-latest-remittances-by-account.action.d.ts.map +1 -0
- package/dist/modules/fintech/actions/get-latest-remittances-by-account.action.js +122 -0
- package/dist/modules/fintech/actions/get-latest-remittances-by-account.action.js.map +1 -0
- package/dist/modules/fintech/actions/get-remittance-by-external-tx-id.action.d.ts +3 -0
- package/dist/modules/fintech/actions/get-remittance-by-external-tx-id.action.d.ts.map +1 -0
- package/dist/modules/fintech/actions/get-remittance-by-external-tx-id.action.js +113 -0
- package/dist/modules/fintech/actions/get-remittance-by-external-tx-id.action.js.map +1 -0
- package/dist/modules/fintech/actions/get-remittance-by-id.action.d.ts +3 -0
- package/dist/modules/fintech/actions/get-remittance-by-id.action.d.ts.map +1 -0
- package/dist/modules/fintech/actions/get-remittance-by-id.action.js +83 -0
- package/dist/modules/fintech/actions/get-remittance-by-id.action.js.map +1 -0
- package/dist/modules/fintech/actions/get-remittance-by-reference.action.d.ts +3 -0
- package/dist/modules/fintech/actions/get-remittance-by-reference.action.d.ts.map +1 -0
- package/dist/modules/fintech/actions/get-remittance-by-reference.action.js +65 -0
- package/dist/modules/fintech/actions/get-remittance-by-reference.action.js.map +1 -0
- package/dist/modules/fintech/actions/index.d.ts +8 -0
- package/dist/modules/fintech/actions/index.d.ts.map +1 -1
- package/dist/modules/fintech/actions/index.js +8 -0
- package/dist/modules/fintech/actions/index.js.map +1 -1
- package/dist/modules/fintech/actions/process-remittance-step.action.d.ts +3 -0
- package/dist/modules/fintech/actions/process-remittance-step.action.d.ts.map +1 -0
- package/dist/modules/fintech/actions/process-remittance-step.action.js +119 -0
- package/dist/modules/fintech/actions/process-remittance-step.action.js.map +1 -0
- package/dist/modules/fintech/actions/subtract-balance.action.js +4 -4
- package/dist/modules/fintech/actions/subtract-balance.action.js.map +1 -1
- package/dist/modules/fintech/fintech-nest.module.d.ts.map +1 -1
- package/dist/modules/fintech/fintech-nest.module.js +16 -0
- package/dist/modules/fintech/fintech-nest.module.js.map +1 -1
- package/dist/modules/fintech/fintech.module.d.ts.map +1 -1
- package/dist/modules/fintech/fintech.module.js +9 -1
- package/dist/modules/fintech/fintech.module.js.map +1 -1
- package/dist/modules/fintech/services/complete-remittance.service.d.ts +8 -0
- package/dist/modules/fintech/services/complete-remittance.service.d.ts.map +1 -0
- package/dist/modules/fintech/services/complete-remittance.service.js +52 -0
- package/dist/modules/fintech/services/complete-remittance.service.js.map +1 -0
- package/dist/modules/fintech/services/create-operation.service.d.ts.map +1 -1
- package/dist/modules/fintech/services/create-operation.service.js +6 -2
- package/dist/modules/fintech/services/create-operation.service.js.map +1 -1
- package/dist/modules/fintech/services/create-remittance.service.d.ts +8 -0
- package/dist/modules/fintech/services/create-remittance.service.d.ts.map +1 -0
- package/dist/modules/fintech/services/create-remittance.service.js +65 -0
- package/dist/modules/fintech/services/create-remittance.service.js.map +1 -0
- package/dist/modules/fintech/services/create-transaction.service.d.ts.map +1 -1
- package/dist/modules/fintech/services/create-transaction.service.js +6 -2
- package/dist/modules/fintech/services/create-transaction.service.js.map +1 -1
- package/dist/modules/fintech/services/get-currency-by-type-and-code.service.d.ts +8 -0
- package/dist/modules/fintech/services/get-currency-by-type-and-code.service.d.ts.map +1 -0
- package/dist/modules/fintech/services/get-currency-by-type-and-code.service.js +47 -0
- package/dist/modules/fintech/services/get-currency-by-type-and-code.service.js.map +1 -0
- package/dist/modules/fintech/services/get-latest-remittances-by-account.service.d.ts +8 -0
- package/dist/modules/fintech/services/get-latest-remittances-by-account.service.d.ts.map +1 -0
- package/dist/modules/fintech/services/get-latest-remittances-by-account.service.js +127 -0
- package/dist/modules/fintech/services/get-latest-remittances-by-account.service.js.map +1 -0
- package/dist/modules/fintech/services/get-operation.service.d.ts.map +1 -1
- package/dist/modules/fintech/services/get-operation.service.js +3 -1
- package/dist/modules/fintech/services/get-operation.service.js.map +1 -1
- package/dist/modules/fintech/services/get-remittance-by-external-tx-id.service.d.ts +8 -0
- package/dist/modules/fintech/services/get-remittance-by-external-tx-id.service.d.ts.map +1 -0
- package/dist/modules/fintech/services/get-remittance-by-external-tx-id.service.js +61 -0
- package/dist/modules/fintech/services/get-remittance-by-external-tx-id.service.js.map +1 -0
- package/dist/modules/fintech/services/get-remittance-by-id.service.d.ts +8 -0
- package/dist/modules/fintech/services/get-remittance-by-id.service.d.ts.map +1 -0
- package/dist/modules/fintech/services/get-remittance-by-id.service.js +48 -0
- package/dist/modules/fintech/services/get-remittance-by-id.service.js.map +1 -0
- package/dist/modules/fintech/services/get-remittance-by-reference.service.d.ts +8 -0
- package/dist/modules/fintech/services/get-remittance-by-reference.service.d.ts.map +1 -0
- package/dist/modules/fintech/services/get-remittance-by-reference.service.js +48 -0
- package/dist/modules/fintech/services/get-remittance-by-reference.service.js.map +1 -0
- package/dist/modules/fintech/services/get-transaction.service.d.ts.map +1 -1
- package/dist/modules/fintech/services/get-transaction.service.js +3 -1
- package/dist/modules/fintech/services/get-transaction.service.js.map +1 -1
- package/dist/modules/fintech/services/index.d.ts +8 -0
- package/dist/modules/fintech/services/index.d.ts.map +1 -1
- package/dist/modules/fintech/services/index.js +8 -0
- package/dist/modules/fintech/services/index.js.map +1 -1
- package/dist/modules/fintech/services/process-remittance-step.service.d.ts +8 -0
- package/dist/modules/fintech/services/process-remittance-step.service.d.ts.map +1 -0
- package/dist/modules/fintech/services/process-remittance-step.service.js +59 -0
- package/dist/modules/fintech/services/process-remittance-step.service.js.map +1 -0
- package/dist/modules/fintech/services/update-operation-status.service.d.ts.map +1 -1
- package/dist/modules/fintech/services/update-operation-status.service.js +3 -1
- package/dist/modules/fintech/services/update-operation-status.service.js.map +1 -1
- package/dist/modules/inbestgo/actions/create-transaction.action.d.ts +3 -0
- package/dist/modules/inbestgo/actions/create-transaction.action.d.ts.map +1 -0
- package/dist/modules/inbestgo/actions/create-transaction.action.js +132 -0
- package/dist/modules/inbestgo/actions/create-transaction.action.js.map +1 -0
- package/dist/modules/inbestgo/actions/index.d.ts +3 -0
- package/dist/modules/inbestgo/actions/index.d.ts.map +1 -0
- package/dist/modules/inbestgo/actions/index.js +19 -0
- package/dist/modules/inbestgo/actions/index.js.map +1 -0
- package/dist/modules/inbestgo/actions/lookup-user-by-phone.action.d.ts +3 -0
- package/dist/modules/inbestgo/actions/lookup-user-by-phone.action.d.ts.map +1 -0
- package/dist/modules/inbestgo/actions/lookup-user-by-phone.action.js +76 -0
- package/dist/modules/inbestgo/actions/lookup-user-by-phone.action.js.map +1 -0
- package/dist/modules/inbestgo/auth/inbestgo-auth.service.d.ts +8 -0
- package/dist/modules/inbestgo/auth/inbestgo-auth.service.d.ts.map +1 -0
- package/dist/modules/inbestgo/auth/inbestgo-auth.service.js +75 -0
- package/dist/modules/inbestgo/auth/inbestgo-auth.service.js.map +1 -0
- package/dist/modules/inbestgo/auth/index.d.ts +2 -0
- package/dist/modules/inbestgo/auth/index.d.ts.map +1 -0
- package/dist/modules/{capa → inbestgo}/auth/index.js +1 -1
- package/dist/modules/inbestgo/auth/index.js.map +1 -0
- package/dist/modules/inbestgo/credentials.d.ts +3 -0
- package/dist/modules/inbestgo/credentials.d.ts.map +1 -0
- package/dist/modules/inbestgo/credentials.js +32 -0
- package/dist/modules/inbestgo/credentials.js.map +1 -0
- package/dist/modules/inbestgo/inbestgo-nest.module.d.ts +3 -0
- package/dist/modules/inbestgo/inbestgo-nest.module.d.ts.map +1 -0
- package/dist/modules/inbestgo/inbestgo-nest.module.js +29 -0
- package/dist/modules/inbestgo/inbestgo-nest.module.js.map +1 -0
- package/dist/modules/inbestgo/inbestgo.module.d.ts +3 -0
- package/dist/modules/inbestgo/inbestgo.module.d.ts.map +1 -0
- package/dist/modules/inbestgo/inbestgo.module.js +21 -0
- package/dist/modules/inbestgo/inbestgo.module.js.map +1 -0
- package/dist/modules/inbestgo/services/create-transaction.service.d.ts +8 -0
- package/dist/modules/inbestgo/services/create-transaction.service.d.ts.map +1 -0
- package/dist/modules/inbestgo/services/create-transaction.service.js +78 -0
- package/dist/modules/inbestgo/services/create-transaction.service.js.map +1 -0
- package/dist/modules/inbestgo/services/index.d.ts +3 -0
- package/dist/modules/inbestgo/services/index.d.ts.map +1 -0
- package/dist/modules/inbestgo/services/index.js +19 -0
- package/dist/modules/inbestgo/services/index.js.map +1 -0
- package/dist/modules/inbestgo/services/lookup-user-by-phone.service.d.ts +8 -0
- package/dist/modules/inbestgo/services/lookup-user-by-phone.service.d.ts.map +1 -0
- package/dist/modules/inbestgo/services/lookup-user-by-phone.service.js +54 -0
- package/dist/modules/inbestgo/services/lookup-user-by-phone.service.js.map +1 -0
- package/dist/modules/index.d.ts +1 -1
- package/dist/modules/index.d.ts.map +1 -1
- package/dist/modules/index.js +5 -5
- package/dist/modules/index.js.map +1 -1
- package/dist/modules/session/actions/get-session-by-key.action.d.ts +3 -0
- package/dist/modules/session/actions/get-session-by-key.action.d.ts.map +1 -0
- package/dist/modules/session/actions/get-session-by-key.action.js +104 -0
- package/dist/modules/session/actions/get-session-by-key.action.js.map +1 -0
- package/dist/modules/session/actions/index.d.ts +2 -0
- package/dist/modules/session/actions/index.d.ts.map +1 -1
- package/dist/modules/session/actions/index.js +2 -0
- package/dist/modules/session/actions/index.js.map +1 -1
- package/dist/modules/session/actions/save-context-by-key.action.d.ts +3 -0
- package/dist/modules/session/actions/save-context-by-key.action.d.ts.map +1 -0
- package/dist/modules/session/actions/save-context-by-key.action.js +72 -0
- package/dist/modules/session/actions/save-context-by-key.action.js.map +1 -0
- package/dist/modules/session/services/get-session-by-key.service.d.ts +22 -0
- package/dist/modules/session/services/get-session-by-key.service.d.ts.map +1 -0
- package/dist/modules/session/services/get-session-by-key.service.js +62 -0
- package/dist/modules/session/services/get-session-by-key.service.js.map +1 -0
- package/dist/modules/session/services/index.d.ts +2 -0
- package/dist/modules/session/services/index.d.ts.map +1 -1
- package/dist/modules/session/services/index.js +2 -0
- package/dist/modules/session/services/index.js.map +1 -1
- package/dist/modules/session/services/save-context-by-key.service.d.ts +10 -0
- package/dist/modules/session/services/save-context-by-key.service.d.ts.map +1 -0
- package/dist/modules/session/services/save-context-by-key.service.js +63 -0
- package/dist/modules/session/services/save-context-by-key.service.js.map +1 -0
- package/dist/modules/session/services/set-session-variable.service.d.ts +3 -3
- package/dist/modules/session/services/set-session-variable.service.d.ts.map +1 -1
- package/dist/modules/session/services/set-session-variable.service.js +5 -5
- package/dist/modules/session/services/set-session-variable.service.js.map +1 -1
- package/dist/modules/session/session-nest.module.d.ts.map +1 -1
- package/dist/modules/session/session-nest.module.js +2 -2
- package/dist/modules/session/session-nest.module.js.map +1 -1
- package/dist/modules/session/session.module.js +1 -1
- package/dist/modules/session/session.module.js.map +1 -1
- package/dist/modules/toolbox/actions/empty-action.action.d.ts +3 -0
- package/dist/modules/toolbox/actions/empty-action.action.d.ts.map +1 -0
- package/dist/modules/toolbox/actions/empty-action.action.js +29 -0
- package/dist/modules/toolbox/actions/empty-action.action.js.map +1 -0
- package/dist/modules/toolbox/actions/index.d.ts +1 -0
- package/dist/modules/toolbox/actions/index.d.ts.map +1 -1
- package/dist/modules/toolbox/actions/index.js +1 -0
- package/dist/modules/toolbox/actions/index.js.map +1 -1
- package/dist/modules/toolbox/services/empty-action.service.d.ts +6 -0
- package/dist/modules/toolbox/services/empty-action.service.d.ts.map +1 -0
- package/dist/modules/toolbox/services/empty-action.service.js +28 -0
- package/dist/modules/toolbox/services/empty-action.service.js.map +1 -0
- package/dist/modules/toolbox/services/index.d.ts +1 -0
- package/dist/modules/toolbox/services/index.d.ts.map +1 -1
- package/dist/modules/toolbox/services/index.js +1 -0
- package/dist/modules/toolbox/services/index.js.map +1 -1
- package/dist/modules/toolbox/toolbox-nest.module.d.ts.map +1 -1
- package/dist/modules/toolbox/toolbox-nest.module.js +12 -2
- package/dist/modules/toolbox/toolbox-nest.module.js.map +1 -1
- package/dist/modules/toolbox/toolbox.module.d.ts.map +1 -1
- package/dist/modules/toolbox/toolbox.module.js +1 -1
- package/dist/modules/toolbox/toolbox.module.js.map +1 -1
- package/dist/modules/types.d.ts +1 -0
- package/dist/modules/types.d.ts.map +1 -1
- package/dist/modules/types.js.map +1 -1
- package/dist/modules/user/actions/get-or-create-user-by-params.action.d.ts +3 -0
- package/dist/modules/user/actions/get-or-create-user-by-params.action.d.ts.map +1 -0
- package/dist/modules/user/actions/get-or-create-user-by-params.action.js +284 -0
- package/dist/modules/user/actions/get-or-create-user-by-params.action.js.map +1 -0
- package/dist/modules/user/actions/get-or-create-user.action.d.ts.map +1 -1
- package/dist/modules/user/actions/get-or-create-user.action.js +12 -2
- package/dist/modules/user/actions/get-or-create-user.action.js.map +1 -1
- package/dist/modules/user/services/get-or-create-user-by-params.service.d.ts +8 -0
- package/dist/modules/user/services/get-or-create-user-by-params.service.d.ts.map +1 -0
- package/dist/modules/user/services/get-or-create-user-by-params.service.js +175 -0
- package/dist/modules/user/services/get-or-create-user-by-params.service.js.map +1 -0
- package/dist/modules/user/services/get-or-create-user.service.d.ts.map +1 -1
- package/dist/modules/user/services/get-or-create-user.service.js +42 -3
- package/dist/modules/user/services/get-or-create-user.service.js.map +1 -1
- package/dist/modules/webhook/controllers/webhook-receiver.controller.d.ts +2 -0
- package/dist/modules/webhook/controllers/webhook-receiver.controller.d.ts.map +1 -1
- package/dist/modules/webhook/controllers/webhook-receiver.controller.js +14 -0
- package/dist/modules/webhook/controllers/webhook-receiver.controller.js.map +1 -1
- package/dist/services/workflow-execution.service.d.ts +3 -3
- package/dist/services/workflow-execution.service.d.ts.map +1 -1
- package/dist/services/workflow-execution.service.js +96 -28
- package/dist/services/workflow-execution.service.js.map +1 -1
- package/dist/services/workflow-sse.service.d.ts +29 -0
- package/dist/services/workflow-sse.service.d.ts.map +1 -0
- package/dist/services/workflow-sse.service.js +155 -0
- package/dist/services/workflow-sse.service.js.map +1 -0
- package/dist/workflow-core.module.d.ts.map +1 -1
- package/dist/workflow-core.module.js +5 -0
- package/dist/workflow-core.module.js.map +1 -1
- package/dist/workflow.module.d.ts.map +1 -1
- package/dist/workflow.module.js +0 -3
- package/dist/workflow.module.js.map +1 -1
- package/package.json +102 -102
- package/dist/modules/capa/actions/cancel-transaction.action.d.ts +0 -3
- package/dist/modules/capa/actions/cancel-transaction.action.d.ts.map +0 -1
- package/dist/modules/capa/actions/cancel-transaction.action.js +0 -58
- package/dist/modules/capa/actions/cancel-transaction.action.js.map +0 -1
- package/dist/modules/capa/actions/create-cross-ramp-quote.action.d.ts +0 -3
- package/dist/modules/capa/actions/create-cross-ramp-quote.action.d.ts.map +0 -1
- package/dist/modules/capa/actions/create-cross-ramp-quote.action.js +0 -143
- package/dist/modules/capa/actions/create-cross-ramp-quote.action.js.map +0 -1
- package/dist/modules/capa/actions/create-cross-ramp.action.d.ts +0 -3
- package/dist/modules/capa/actions/create-cross-ramp.action.d.ts.map +0 -1
- package/dist/modules/capa/actions/create-cross-ramp.action.js +0 -158
- package/dist/modules/capa/actions/create-cross-ramp.action.js.map +0 -1
- package/dist/modules/capa/actions/create-kyb-verification-link.action.d.ts +0 -3
- package/dist/modules/capa/actions/create-kyb-verification-link.action.d.ts.map +0 -1
- package/dist/modules/capa/actions/create-kyb-verification-link.action.js +0 -50
- package/dist/modules/capa/actions/create-kyb-verification-link.action.js.map +0 -1
- package/dist/modules/capa/actions/create-kyc-verification-link.action.d.ts +0 -3
- package/dist/modules/capa/actions/create-kyc-verification-link.action.d.ts.map +0 -1
- package/dist/modules/capa/actions/create-kyc-verification-link.action.js +0 -50
- package/dist/modules/capa/actions/create-kyc-verification-link.action.js.map +0 -1
- package/dist/modules/capa/actions/create-off-ramp.action.d.ts +0 -3
- package/dist/modules/capa/actions/create-off-ramp.action.d.ts.map +0 -1
- package/dist/modules/capa/actions/create-off-ramp.action.js +0 -195
- package/dist/modules/capa/actions/create-off-ramp.action.js.map +0 -1
- package/dist/modules/capa/actions/create-on-ramp.action.d.ts +0 -3
- package/dist/modules/capa/actions/create-on-ramp.action.d.ts.map +0 -1
- package/dist/modules/capa/actions/create-on-ramp.action.js +0 -195
- package/dist/modules/capa/actions/create-on-ramp.action.js.map +0 -1
- package/dist/modules/capa/actions/create-quote.action.d.ts +0 -3
- package/dist/modules/capa/actions/create-quote.action.d.ts.map +0 -1
- package/dist/modules/capa/actions/create-quote.action.js +0 -156
- package/dist/modules/capa/actions/create-quote.action.js.map +0 -1
- package/dist/modules/capa/actions/create-receiver.action.d.ts +0 -3
- package/dist/modules/capa/actions/create-receiver.action.d.ts.map +0 -1
- package/dist/modules/capa/actions/create-receiver.action.js +0 -217
- package/dist/modules/capa/actions/create-receiver.action.js.map +0 -1
- package/dist/modules/capa/actions/create-user-kyc.action.d.ts +0 -3
- package/dist/modules/capa/actions/create-user-kyc.action.d.ts.map +0 -1
- package/dist/modules/capa/actions/create-user-kyc.action.js +0 -90
- package/dist/modules/capa/actions/create-user-kyc.action.js.map +0 -1
- package/dist/modules/capa/actions/create-user.action.d.ts +0 -3
- package/dist/modules/capa/actions/create-user.action.d.ts.map +0 -1
- package/dist/modules/capa/actions/create-user.action.js +0 -110
- package/dist/modules/capa/actions/create-user.action.js.map +0 -1
- package/dist/modules/capa/actions/delete-receiver.action.d.ts +0 -3
- package/dist/modules/capa/actions/delete-receiver.action.d.ts.map +0 -1
- package/dist/modules/capa/actions/delete-receiver.action.js +0 -56
- package/dist/modules/capa/actions/delete-receiver.action.js.map +0 -1
- package/dist/modules/capa/actions/get-cross-ramp-quote.action.d.ts +0 -3
- package/dist/modules/capa/actions/get-cross-ramp-quote.action.d.ts.map +0 -1
- package/dist/modules/capa/actions/get-cross-ramp-quote.action.js +0 -143
- package/dist/modules/capa/actions/get-cross-ramp-quote.action.js.map +0 -1
- package/dist/modules/capa/actions/get-kyb-details.action.d.ts +0 -3
- package/dist/modules/capa/actions/get-kyb-details.action.d.ts.map +0 -1
- package/dist/modules/capa/actions/get-kyb-details.action.js +0 -64
- package/dist/modules/capa/actions/get-kyb-details.action.js.map +0 -1
- package/dist/modules/capa/actions/get-kyc-details.action.d.ts +0 -3
- package/dist/modules/capa/actions/get-kyc-details.action.d.ts.map +0 -1
- package/dist/modules/capa/actions/get-kyc-details.action.js +0 -100
- package/dist/modules/capa/actions/get-kyc-details.action.js.map +0 -1
- package/dist/modules/capa/actions/get-mock-testing-guide.action.d.ts +0 -3
- package/dist/modules/capa/actions/get-mock-testing-guide.action.d.ts.map +0 -1
- package/dist/modules/capa/actions/get-mock-testing-guide.action.js +0 -23
- package/dist/modules/capa/actions/get-mock-testing-guide.action.js.map +0 -1
- package/dist/modules/capa/actions/get-quote.action.d.ts +0 -3
- package/dist/modules/capa/actions/get-quote.action.d.ts.map +0 -1
- package/dist/modules/capa/actions/get-quote.action.js +0 -156
- package/dist/modules/capa/actions/get-quote.action.js.map +0 -1
- package/dist/modules/capa/actions/get-user-agreements.action.d.ts +0 -3
- package/dist/modules/capa/actions/get-user-agreements.action.d.ts.map +0 -1
- package/dist/modules/capa/actions/get-user-agreements.action.js +0 -40
- package/dist/modules/capa/actions/get-user-agreements.action.js.map +0 -1
- package/dist/modules/capa/actions/index.d.ts +0 -23
- package/dist/modules/capa/actions/index.d.ts.map +0 -1
- package/dist/modules/capa/actions/index.js +0 -39
- package/dist/modules/capa/actions/index.js.map +0 -1
- package/dist/modules/capa/actions/list-receivers.action.d.ts +0 -3
- package/dist/modules/capa/actions/list-receivers.action.d.ts.map +0 -1
- package/dist/modules/capa/actions/list-receivers.action.js +0 -51
- package/dist/modules/capa/actions/list-receivers.action.js.map +0 -1
- package/dist/modules/capa/actions/list-transactions.action.d.ts +0 -3
- package/dist/modules/capa/actions/list-transactions.action.d.ts.map +0 -1
- package/dist/modules/capa/actions/list-transactions.action.js +0 -125
- package/dist/modules/capa/actions/list-transactions.action.js.map +0 -1
- package/dist/modules/capa/actions/request-document-signature.action.d.ts +0 -3
- package/dist/modules/capa/actions/request-document-signature.action.d.ts.map +0 -1
- package/dist/modules/capa/actions/request-document-signature.action.js +0 -50
- package/dist/modules/capa/actions/request-document-signature.action.js.map +0 -1
- package/dist/modules/capa/actions/update-webhook-settings.action.d.ts +0 -3
- package/dist/modules/capa/actions/update-webhook-settings.action.d.ts.map +0 -1
- package/dist/modules/capa/actions/update-webhook-settings.action.js +0 -52
- package/dist/modules/capa/actions/update-webhook-settings.action.js.map +0 -1
- package/dist/modules/capa/auth/capa-auth.service.d.ts +0 -8
- package/dist/modules/capa/auth/capa-auth.service.d.ts.map +0 -1
- package/dist/modules/capa/auth/capa-auth.service.js +0 -94
- package/dist/modules/capa/auth/capa-auth.service.js.map +0 -1
- package/dist/modules/capa/auth/index.d.ts +0 -2
- package/dist/modules/capa/auth/index.d.ts.map +0 -1
- package/dist/modules/capa/auth/index.js.map +0 -1
- package/dist/modules/capa/capa-nest.module.d.ts +0 -3
- package/dist/modules/capa/capa-nest.module.d.ts.map +0 -1
- package/dist/modules/capa/capa-nest.module.js +0 -72
- package/dist/modules/capa/capa-nest.module.js.map +0 -1
- package/dist/modules/capa/capa.module.d.ts +0 -3
- package/dist/modules/capa/capa.module.d.ts.map +0 -1
- package/dist/modules/capa/capa.module.js +0 -42
- package/dist/modules/capa/capa.module.js.map +0 -1
- package/dist/modules/capa/credentials.d.ts +0 -3
- package/dist/modules/capa/credentials.d.ts.map +0 -1
- package/dist/modules/capa/credentials.js +0 -46
- package/dist/modules/capa/credentials.js.map +0 -1
- package/dist/modules/capa/services/cancel-transaction.service.d.ts +0 -9
- package/dist/modules/capa/services/cancel-transaction.service.d.ts.map +0 -1
- package/dist/modules/capa/services/cancel-transaction.service.js +0 -45
- package/dist/modules/capa/services/cancel-transaction.service.js.map +0 -1
- package/dist/modules/capa/services/create-cross-ramp-quote.service.d.ts +0 -9
- package/dist/modules/capa/services/create-cross-ramp-quote.service.d.ts.map +0 -1
- package/dist/modules/capa/services/create-cross-ramp-quote.service.js +0 -75
- package/dist/modules/capa/services/create-cross-ramp-quote.service.js.map +0 -1
- package/dist/modules/capa/services/create-cross-ramp.service.d.ts +0 -9
- package/dist/modules/capa/services/create-cross-ramp.service.d.ts.map +0 -1
- package/dist/modules/capa/services/create-cross-ramp.service.js +0 -66
- package/dist/modules/capa/services/create-cross-ramp.service.js.map +0 -1
- package/dist/modules/capa/services/create-kyb-verification-link.service.d.ts +0 -9
- package/dist/modules/capa/services/create-kyb-verification-link.service.d.ts.map +0 -1
- package/dist/modules/capa/services/create-kyb-verification-link.service.js +0 -47
- package/dist/modules/capa/services/create-kyb-verification-link.service.js.map +0 -1
- package/dist/modules/capa/services/create-kyc-verification-link.service.d.ts +0 -9
- package/dist/modules/capa/services/create-kyc-verification-link.service.d.ts.map +0 -1
- package/dist/modules/capa/services/create-kyc-verification-link.service.js +0 -47
- package/dist/modules/capa/services/create-kyc-verification-link.service.js.map +0 -1
- package/dist/modules/capa/services/create-off-ramp.service.d.ts +0 -9
- package/dist/modules/capa/services/create-off-ramp.service.d.ts.map +0 -1
- package/dist/modules/capa/services/create-off-ramp.service.js +0 -80
- package/dist/modules/capa/services/create-off-ramp.service.js.map +0 -1
- package/dist/modules/capa/services/create-on-ramp.service.d.ts +0 -9
- package/dist/modules/capa/services/create-on-ramp.service.d.ts.map +0 -1
- package/dist/modules/capa/services/create-on-ramp.service.js +0 -80
- package/dist/modules/capa/services/create-on-ramp.service.js.map +0 -1
- package/dist/modules/capa/services/create-quote.service.d.ts +0 -9
- package/dist/modules/capa/services/create-quote.service.d.ts.map +0 -1
- package/dist/modules/capa/services/create-quote.service.js +0 -77
- package/dist/modules/capa/services/create-quote.service.js.map +0 -1
- package/dist/modules/capa/services/create-receiver.service.d.ts +0 -9
- package/dist/modules/capa/services/create-receiver.service.d.ts.map +0 -1
- package/dist/modules/capa/services/create-receiver.service.js +0 -79
- package/dist/modules/capa/services/create-receiver.service.js.map +0 -1
- package/dist/modules/capa/services/create-user-kyc.service.d.ts +0 -9
- package/dist/modules/capa/services/create-user-kyc.service.d.ts.map +0 -1
- package/dist/modules/capa/services/create-user-kyc.service.js +0 -54
- package/dist/modules/capa/services/create-user-kyc.service.js.map +0 -1
- package/dist/modules/capa/services/create-user.service.d.ts +0 -9
- package/dist/modules/capa/services/create-user.service.d.ts.map +0 -1
- package/dist/modules/capa/services/create-user.service.js +0 -57
- package/dist/modules/capa/services/create-user.service.js.map +0 -1
- package/dist/modules/capa/services/delete-receiver.service.d.ts +0 -9
- package/dist/modules/capa/services/delete-receiver.service.d.ts.map +0 -1
- package/dist/modules/capa/services/delete-receiver.service.js +0 -47
- package/dist/modules/capa/services/delete-receiver.service.js.map +0 -1
- package/dist/modules/capa/services/get-cross-ramp-quote.service.d.ts +0 -9
- package/dist/modules/capa/services/get-cross-ramp-quote.service.d.ts.map +0 -1
- package/dist/modules/capa/services/get-cross-ramp-quote.service.js +0 -75
- package/dist/modules/capa/services/get-cross-ramp-quote.service.js.map +0 -1
- package/dist/modules/capa/services/get-kyb-details.service.d.ts +0 -9
- package/dist/modules/capa/services/get-kyb-details.service.d.ts.map +0 -1
- package/dist/modules/capa/services/get-kyb-details.service.js +0 -46
- package/dist/modules/capa/services/get-kyb-details.service.js.map +0 -1
- package/dist/modules/capa/services/get-kyc-details.service.d.ts +0 -9
- package/dist/modules/capa/services/get-kyc-details.service.d.ts.map +0 -1
- package/dist/modules/capa/services/get-kyc-details.service.js +0 -52
- package/dist/modules/capa/services/get-kyc-details.service.js.map +0 -1
- package/dist/modules/capa/services/get-mock-testing-guide.service.d.ts +0 -9
- package/dist/modules/capa/services/get-mock-testing-guide.service.d.ts.map +0 -1
- package/dist/modules/capa/services/get-mock-testing-guide.service.js +0 -37
- package/dist/modules/capa/services/get-mock-testing-guide.service.js.map +0 -1
- package/dist/modules/capa/services/get-quote.service.d.ts +0 -9
- package/dist/modules/capa/services/get-quote.service.d.ts.map +0 -1
- package/dist/modules/capa/services/get-quote.service.js +0 -77
- package/dist/modules/capa/services/get-quote.service.js.map +0 -1
- package/dist/modules/capa/services/get-user-agreements.service.d.ts +0 -9
- package/dist/modules/capa/services/get-user-agreements.service.d.ts.map +0 -1
- package/dist/modules/capa/services/get-user-agreements.service.js +0 -42
- package/dist/modules/capa/services/get-user-agreements.service.js.map +0 -1
- package/dist/modules/capa/services/index.d.ts +0 -23
- package/dist/modules/capa/services/index.d.ts.map +0 -1
- package/dist/modules/capa/services/index.js +0 -39
- package/dist/modules/capa/services/index.js.map +0 -1
- package/dist/modules/capa/services/list-receivers.service.d.ts +0 -9
- package/dist/modules/capa/services/list-receivers.service.d.ts.map +0 -1
- package/dist/modules/capa/services/list-receivers.service.js +0 -45
- package/dist/modules/capa/services/list-receivers.service.js.map +0 -1
- package/dist/modules/capa/services/list-transactions.service.d.ts +0 -9
- package/dist/modules/capa/services/list-transactions.service.d.ts.map +0 -1
- package/dist/modules/capa/services/list-transactions.service.js +0 -58
- package/dist/modules/capa/services/list-transactions.service.js.map +0 -1
- package/dist/modules/capa/services/request-document-signature.service.d.ts +0 -9
- package/dist/modules/capa/services/request-document-signature.service.d.ts.map +0 -1
- package/dist/modules/capa/services/request-document-signature.service.js +0 -46
- package/dist/modules/capa/services/request-document-signature.service.js.map +0 -1
- package/dist/modules/capa/services/update-webhook-settings.service.d.ts +0 -9
- package/dist/modules/capa/services/update-webhook-settings.service.d.ts.map +0 -1
- package/dist/modules/capa/services/update-webhook-settings.service.js +0 -47
- package/dist/modules/capa/services/update-webhook-settings.service.js.map +0 -1
- package/dist/modules/capa/triggers/index.d.ts +0 -3
- package/dist/modules/capa/triggers/index.d.ts.map +0 -1
- package/dist/modules/capa/triggers/index.js +0 -5
- package/dist/modules/capa/triggers/index.js.map +0 -1
- package/dist/modules/capa/utils/capa-credentials.util.d.ts +0 -4
- package/dist/modules/capa/utils/capa-credentials.util.d.ts.map +0 -1
- package/dist/modules/capa/utils/capa-credentials.util.js +0 -24
- package/dist/modules/capa/utils/capa-credentials.util.js.map +0 -1
- package/dist/modules/capa/utils/capa-query.util.d.ts +0 -4
- package/dist/modules/capa/utils/capa-query.util.d.ts.map +0 -1
- package/dist/modules/capa/utils/capa-query.util.js +0 -55
- package/dist/modules/capa/utils/capa-query.util.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,238 +1,238 @@
|
|
|
1
|
-
# Workflow Module
|
|
2
|
-
|
|
3
|
-
A comprehensive workflow management module for Venturial that handles workflow creation, execution, and session management.
|
|
4
|
-
|
|
5
|
-
## Features
|
|
6
|
-
|
|
7
|
-
- **Workflow Management**: Create, update, and manage workflows with nodes and edges
|
|
8
|
-
- **Node Types**: Support for multiple node types (Chatbot, AI, Conditional, Twilio)
|
|
9
|
-
- **Execution Tracking**: Track workflow executions with status and data
|
|
10
|
-
- **Session Management**: Persistent sessions for multi-step workflows
|
|
11
|
-
- **Execution Modes**: Support for single-run and persistent session workflows
|
|
12
|
-
|
|
13
|
-
## Installation
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
npm install @venturialstd/workflow
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## Entities
|
|
20
|
-
|
|
21
|
-
### Workflow
|
|
22
|
-
Main workflow entity containing:
|
|
23
|
-
- `name`: Workflow name
|
|
24
|
-
- `active`: Whether the workflow is active
|
|
25
|
-
- `executionMode`: `single` or `persistent`
|
|
26
|
-
- `status`: `active`, `inactive`, or `draft`
|
|
27
|
-
- Relationships to nodes, edges, executions, and sessions
|
|
28
|
-
|
|
29
|
-
### WorkflowNode
|
|
30
|
-
Represents a node in the workflow:
|
|
31
|
-
- `nodeId`: ReactFlow node identifier
|
|
32
|
-
- `type`: Node type (chatbot, ai, conditional, twilio)
|
|
33
|
-
- `actionType`: Specific trigger or action identifier
|
|
34
|
-
- `properties`: Node-specific properties (JSONB)
|
|
35
|
-
- `position`: Node position on canvas (x, y)
|
|
36
|
-
|
|
37
|
-
### WorkflowEdge
|
|
38
|
-
Represents connections between nodes:
|
|
39
|
-
- `edgeId`: ReactFlow edge identifier
|
|
40
|
-
- `source`: Source node ID
|
|
41
|
-
- `target`: Target node ID
|
|
42
|
-
- `sourceHandle` / `targetHandle`: Handle identifiers
|
|
43
|
-
|
|
44
|
-
### WorkflowExecution
|
|
45
|
-
Tracks individual workflow runs:
|
|
46
|
-
- `status`: `pending`, `running`, `completed`, `failed`, `cancelled`
|
|
47
|
-
- `sessionId`: Optional session ID for persistent workflows
|
|
48
|
-
- `currentNodeId`: Current node being executed
|
|
49
|
-
- `inputData` / `outputData` / `errorData`: Execution data
|
|
50
|
-
|
|
51
|
-
### WorkflowSession
|
|
52
|
-
Manages persistent workflow sessions:
|
|
53
|
-
- `userId`: Optional user identifier
|
|
54
|
-
- `externalId`: External identifier (phone, email, etc.)
|
|
55
|
-
- `currentNodeId`: Current node in session
|
|
56
|
-
- `context`: Session context/variables (JSONB)
|
|
57
|
-
- `history`: Array of node execution history
|
|
58
|
-
|
|
59
|
-
### WorkflowModuleCredential
|
|
60
|
-
Stores credentials for workflow modules:
|
|
61
|
-
- `moduleId`: Module identifier (e.g., 'twilio', 'ai')
|
|
62
|
-
- `name`: User-defined name for this credential set
|
|
63
|
-
- `credentials`: Encrypted credential values (JSONB)
|
|
64
|
-
- `organizationId`: Optional organization scope
|
|
65
|
-
- `userId`: Optional user scope
|
|
66
|
-
- `isActive`: Whether the credential is active
|
|
67
|
-
|
|
68
|
-
## Services
|
|
69
|
-
|
|
70
|
-
All services extend `TypeOrmCrudService` and provide CRUD operations via `@dataui/crud`.
|
|
71
|
-
|
|
72
|
-
### WorkflowService
|
|
73
|
-
- `getWorkflowsByOrganization(organizationId)`
|
|
74
|
-
- `getActiveWorkflows(organizationId?)`
|
|
75
|
-
- `activateWorkflow(workflowId)`
|
|
76
|
-
- `deactivateWorkflow(workflowId)`
|
|
77
|
-
- `getWorkflowWithNodesAndEdges(workflowId)`
|
|
78
|
-
|
|
79
|
-
### WorkflowNodeService
|
|
80
|
-
- `getNodesByWorkflowId(workflowId)`
|
|
81
|
-
- `getNodeByNodeId(workflowId, nodeId)`
|
|
82
|
-
- `updateNodeProperties(id, properties)`
|
|
83
|
-
- `updateNodePosition(id, position)`
|
|
84
|
-
|
|
85
|
-
### WorkflowEdgeService
|
|
86
|
-
- `getEdgesByWorkflowId(workflowId)`
|
|
87
|
-
- `getEdgeByEdgeId(workflowId, edgeId)`
|
|
88
|
-
- `getEdgesBySourceNode(workflowId, sourceNodeId)`
|
|
89
|
-
- `getEdgesByTargetNode(workflowId, targetNodeId)`
|
|
90
|
-
|
|
91
|
-
### WorkflowExecutionService
|
|
92
|
-
- `getExecutionsByWorkflowId(workflowId)`
|
|
93
|
-
- `getExecutionsBySessionId(sessionId)`
|
|
94
|
-
- `getActiveExecutions(workflowId?)`
|
|
95
|
-
- `startExecution(executionId)`
|
|
96
|
-
- `completeExecution(executionId, outputData?)`
|
|
97
|
-
- `failExecution(executionId, errorMessage, errorData?)`
|
|
98
|
-
- `updateCurrentNode(executionId, currentNodeId)`
|
|
99
|
-
|
|
100
|
-
### WorkflowSessionService
|
|
101
|
-
- `getSessionsByWorkflowId(workflowId)`
|
|
102
|
-
- `getActiveSessions(workflowId?)`
|
|
103
|
-
- `getSessionByExternalId(workflowId, externalId)`
|
|
104
|
-
- `getSessionByUserId(workflowId, userId)`
|
|
105
|
-
- `updateSessionContext(sessionId, context)`
|
|
106
|
-
- `addToSessionHistory(sessionId, nodeId, data?)`
|
|
107
|
-
- `deactivateSession(sessionId)`
|
|
108
|
-
|
|
109
|
-
### WorkflowModuleCredentialService
|
|
110
|
-
- `getCredentialsByModule(moduleId, organizationId?, userId?)`
|
|
111
|
-
- `getCredentialByName(moduleId, name, organizationId?, userId?)`
|
|
112
|
-
- `getActiveCredentials(moduleId, organizationId?)`
|
|
113
|
-
- `updateCredential(id, credentials)`
|
|
114
|
-
- `activateCredential(id)`
|
|
115
|
-
- `deactivateCredential(id)`
|
|
116
|
-
|
|
117
|
-
## Usage
|
|
118
|
-
|
|
119
|
-
### Import the Module
|
|
120
|
-
|
|
121
|
-
```typescript
|
|
122
|
-
import { WorkflowModule } from '@venturialstd/workflow';
|
|
123
|
-
|
|
124
|
-
@Module({
|
|
125
|
-
imports: [WorkflowModule],
|
|
126
|
-
})
|
|
127
|
-
export class AppModule {}
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
### Use Services
|
|
131
|
-
|
|
132
|
-
```typescript
|
|
133
|
-
import { WorkflowService } from '@venturialstd/workflow';
|
|
134
|
-
|
|
135
|
-
@Injectable()
|
|
136
|
-
export class MyService {
|
|
137
|
-
constructor(private workflowService: WorkflowService) {}
|
|
138
|
-
|
|
139
|
-
async createWorkflow(data: CreateWorkflowDto) {
|
|
140
|
-
return this.workflowService.create(data);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
## Constants
|
|
146
|
-
|
|
147
|
-
### Execution Modes
|
|
148
|
-
- `EXECUTION_MODE.SINGLE`: One-time execution
|
|
149
|
-
- `EXECUTION_MODE.PERSISTENT`: Maintains session state
|
|
150
|
-
|
|
151
|
-
### Node Types
|
|
152
|
-
- `NODE_TYPE.CHATBOT`
|
|
153
|
-
- `NODE_TYPE.AI`
|
|
154
|
-
- `NODE_TYPE.CONDITIONAL`
|
|
155
|
-
- `NODE_TYPE.TWILIO`
|
|
156
|
-
|
|
157
|
-
### Node Categories
|
|
158
|
-
- `NODE_CATEGORY.TRIGGER`
|
|
159
|
-
- `NODE_CATEGORY.ACTION`
|
|
160
|
-
|
|
161
|
-
### Workflow Status
|
|
162
|
-
- `WORKFLOW_STATUS.ACTIVE`
|
|
163
|
-
- `WORKFLOW_STATUS.INACTIVE`
|
|
164
|
-
- `WORKFLOW_STATUS.DRAFT`
|
|
165
|
-
|
|
166
|
-
### Execution Status
|
|
167
|
-
- `EXECUTION_STATUS.PENDING`
|
|
168
|
-
- `EXECUTION_STATUS.RUNNING`
|
|
169
|
-
- `EXECUTION_STATUS.COMPLETED`
|
|
170
|
-
- `EXECUTION_STATUS.FAILED`
|
|
171
|
-
- `EXECUTION_STATUS.CANCELLED`
|
|
172
|
-
|
|
173
|
-
## DTOs
|
|
174
|
-
|
|
175
|
-
All DTOs follow the `Create*Dto` pattern:
|
|
176
|
-
- `CreateWorkflowDto`
|
|
177
|
-
- `CreateWorkflowNodeDto`
|
|
178
|
-
- `CreateWorkflowEdgeDto`
|
|
179
|
-
- `CreateWorkflowExecutionDto`
|
|
180
|
-
- `CreateWorkflowSessionDto`
|
|
181
|
-
- `CreateWorkflowModuleCredentialDto`
|
|
182
|
-
- `UpdateWorkflowModuleCredentialDto`
|
|
183
|
-
|
|
184
|
-
## Database Schema
|
|
185
|
-
|
|
186
|
-
The module uses PostgreSQL with JSONB columns for flexible data storage:
|
|
187
|
-
- Node properties stored as JSONB
|
|
188
|
-
- Edge data stored as JSONB
|
|
189
|
-
- Execution input/output/error data as JSONB
|
|
190
|
-
- Session context and history as JSONB
|
|
191
|
-
- Module credentials stored as JSONB (should be encrypted at application level)
|
|
192
|
-
|
|
193
|
-
## Module Credentials
|
|
194
|
-
|
|
195
|
-
Each module can define required credential fields. Users can create multiple credential sets per module:
|
|
196
|
-
|
|
197
|
-
### Defining Credential Fields in Modules
|
|
198
|
-
|
|
199
|
-
Modules can define `credentialFields` in their module definition:
|
|
200
|
-
|
|
201
|
-
```typescript
|
|
202
|
-
credentialFields: [
|
|
203
|
-
{
|
|
204
|
-
id: 'apiKey',
|
|
205
|
-
name: 'API Key',
|
|
206
|
-
description: 'API key for the service',
|
|
207
|
-
type: FIELD_TYPE.STRING,
|
|
208
|
-
validation: { required: true },
|
|
209
|
-
sensitive: true, // Will be encrypted/masked
|
|
210
|
-
required: true,
|
|
211
|
-
},
|
|
212
|
-
]
|
|
213
|
-
```
|
|
214
|
-
|
|
215
|
-
### Managing Credentials
|
|
216
|
-
|
|
217
|
-
```typescript
|
|
218
|
-
// Create credentials for a module
|
|
219
|
-
const credential = await credentialService.create({
|
|
220
|
-
moduleId: 'twilio',
|
|
221
|
-
name: 'Production Twilio',
|
|
222
|
-
credentials: {
|
|
223
|
-
accountSid: 'AC...',
|
|
224
|
-
authToken: '...',
|
|
225
|
-
},
|
|
226
|
-
organizationId: 'org-123',
|
|
227
|
-
});
|
|
228
|
-
|
|
229
|
-
// Get all credentials for a module
|
|
230
|
-
const credentials = await credentialService.getCredentialsByModule(
|
|
231
|
-
'twilio',
|
|
232
|
-
'org-123'
|
|
233
|
-
);
|
|
234
|
-
```
|
|
235
|
-
|
|
236
|
-
## License
|
|
237
|
-
|
|
238
|
-
Part of the Venturial Core NPM package.
|
|
1
|
+
# Workflow Module
|
|
2
|
+
|
|
3
|
+
A comprehensive workflow management module for Venturial that handles workflow creation, execution, and session management.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- **Workflow Management**: Create, update, and manage workflows with nodes and edges
|
|
8
|
+
- **Node Types**: Support for multiple node types (Chatbot, AI, Conditional, Twilio)
|
|
9
|
+
- **Execution Tracking**: Track workflow executions with status and data
|
|
10
|
+
- **Session Management**: Persistent sessions for multi-step workflows
|
|
11
|
+
- **Execution Modes**: Support for single-run and persistent session workflows
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm install @venturialstd/workflow
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Entities
|
|
20
|
+
|
|
21
|
+
### Workflow
|
|
22
|
+
Main workflow entity containing:
|
|
23
|
+
- `name`: Workflow name
|
|
24
|
+
- `active`: Whether the workflow is active
|
|
25
|
+
- `executionMode`: `single` or `persistent`
|
|
26
|
+
- `status`: `active`, `inactive`, or `draft`
|
|
27
|
+
- Relationships to nodes, edges, executions, and sessions
|
|
28
|
+
|
|
29
|
+
### WorkflowNode
|
|
30
|
+
Represents a node in the workflow:
|
|
31
|
+
- `nodeId`: ReactFlow node identifier
|
|
32
|
+
- `type`: Node type (chatbot, ai, conditional, twilio)
|
|
33
|
+
- `actionType`: Specific trigger or action identifier
|
|
34
|
+
- `properties`: Node-specific properties (JSONB)
|
|
35
|
+
- `position`: Node position on canvas (x, y)
|
|
36
|
+
|
|
37
|
+
### WorkflowEdge
|
|
38
|
+
Represents connections between nodes:
|
|
39
|
+
- `edgeId`: ReactFlow edge identifier
|
|
40
|
+
- `source`: Source node ID
|
|
41
|
+
- `target`: Target node ID
|
|
42
|
+
- `sourceHandle` / `targetHandle`: Handle identifiers
|
|
43
|
+
|
|
44
|
+
### WorkflowExecution
|
|
45
|
+
Tracks individual workflow runs:
|
|
46
|
+
- `status`: `pending`, `running`, `completed`, `failed`, `cancelled`
|
|
47
|
+
- `sessionId`: Optional session ID for persistent workflows
|
|
48
|
+
- `currentNodeId`: Current node being executed
|
|
49
|
+
- `inputData` / `outputData` / `errorData`: Execution data
|
|
50
|
+
|
|
51
|
+
### WorkflowSession
|
|
52
|
+
Manages persistent workflow sessions:
|
|
53
|
+
- `userId`: Optional user identifier
|
|
54
|
+
- `externalId`: External identifier (phone, email, etc.)
|
|
55
|
+
- `currentNodeId`: Current node in session
|
|
56
|
+
- `context`: Session context/variables (JSONB)
|
|
57
|
+
- `history`: Array of node execution history
|
|
58
|
+
|
|
59
|
+
### WorkflowModuleCredential
|
|
60
|
+
Stores credentials for workflow modules:
|
|
61
|
+
- `moduleId`: Module identifier (e.g., 'twilio', 'ai')
|
|
62
|
+
- `name`: User-defined name for this credential set
|
|
63
|
+
- `credentials`: Encrypted credential values (JSONB)
|
|
64
|
+
- `organizationId`: Optional organization scope
|
|
65
|
+
- `userId`: Optional user scope
|
|
66
|
+
- `isActive`: Whether the credential is active
|
|
67
|
+
|
|
68
|
+
## Services
|
|
69
|
+
|
|
70
|
+
All services extend `TypeOrmCrudService` and provide CRUD operations via `@dataui/crud`.
|
|
71
|
+
|
|
72
|
+
### WorkflowService
|
|
73
|
+
- `getWorkflowsByOrganization(organizationId)`
|
|
74
|
+
- `getActiveWorkflows(organizationId?)`
|
|
75
|
+
- `activateWorkflow(workflowId)`
|
|
76
|
+
- `deactivateWorkflow(workflowId)`
|
|
77
|
+
- `getWorkflowWithNodesAndEdges(workflowId)`
|
|
78
|
+
|
|
79
|
+
### WorkflowNodeService
|
|
80
|
+
- `getNodesByWorkflowId(workflowId)`
|
|
81
|
+
- `getNodeByNodeId(workflowId, nodeId)`
|
|
82
|
+
- `updateNodeProperties(id, properties)`
|
|
83
|
+
- `updateNodePosition(id, position)`
|
|
84
|
+
|
|
85
|
+
### WorkflowEdgeService
|
|
86
|
+
- `getEdgesByWorkflowId(workflowId)`
|
|
87
|
+
- `getEdgeByEdgeId(workflowId, edgeId)`
|
|
88
|
+
- `getEdgesBySourceNode(workflowId, sourceNodeId)`
|
|
89
|
+
- `getEdgesByTargetNode(workflowId, targetNodeId)`
|
|
90
|
+
|
|
91
|
+
### WorkflowExecutionService
|
|
92
|
+
- `getExecutionsByWorkflowId(workflowId)`
|
|
93
|
+
- `getExecutionsBySessionId(sessionId)`
|
|
94
|
+
- `getActiveExecutions(workflowId?)`
|
|
95
|
+
- `startExecution(executionId)`
|
|
96
|
+
- `completeExecution(executionId, outputData?)`
|
|
97
|
+
- `failExecution(executionId, errorMessage, errorData?)`
|
|
98
|
+
- `updateCurrentNode(executionId, currentNodeId)`
|
|
99
|
+
|
|
100
|
+
### WorkflowSessionService
|
|
101
|
+
- `getSessionsByWorkflowId(workflowId)`
|
|
102
|
+
- `getActiveSessions(workflowId?)`
|
|
103
|
+
- `getSessionByExternalId(workflowId, externalId)`
|
|
104
|
+
- `getSessionByUserId(workflowId, userId)`
|
|
105
|
+
- `updateSessionContext(sessionId, context)`
|
|
106
|
+
- `addToSessionHistory(sessionId, nodeId, data?)`
|
|
107
|
+
- `deactivateSession(sessionId)`
|
|
108
|
+
|
|
109
|
+
### WorkflowModuleCredentialService
|
|
110
|
+
- `getCredentialsByModule(moduleId, organizationId?, userId?)`
|
|
111
|
+
- `getCredentialByName(moduleId, name, organizationId?, userId?)`
|
|
112
|
+
- `getActiveCredentials(moduleId, organizationId?)`
|
|
113
|
+
- `updateCredential(id, credentials)`
|
|
114
|
+
- `activateCredential(id)`
|
|
115
|
+
- `deactivateCredential(id)`
|
|
116
|
+
|
|
117
|
+
## Usage
|
|
118
|
+
|
|
119
|
+
### Import the Module
|
|
120
|
+
|
|
121
|
+
```typescript
|
|
122
|
+
import { WorkflowModule } from '@venturialstd/workflow';
|
|
123
|
+
|
|
124
|
+
@Module({
|
|
125
|
+
imports: [WorkflowModule],
|
|
126
|
+
})
|
|
127
|
+
export class AppModule {}
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### Use Services
|
|
131
|
+
|
|
132
|
+
```typescript
|
|
133
|
+
import { WorkflowService } from '@venturialstd/workflow';
|
|
134
|
+
|
|
135
|
+
@Injectable()
|
|
136
|
+
export class MyService {
|
|
137
|
+
constructor(private workflowService: WorkflowService) {}
|
|
138
|
+
|
|
139
|
+
async createWorkflow(data: CreateWorkflowDto) {
|
|
140
|
+
return this.workflowService.create(data);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
## Constants
|
|
146
|
+
|
|
147
|
+
### Execution Modes
|
|
148
|
+
- `EXECUTION_MODE.SINGLE`: One-time execution
|
|
149
|
+
- `EXECUTION_MODE.PERSISTENT`: Maintains session state
|
|
150
|
+
|
|
151
|
+
### Node Types
|
|
152
|
+
- `NODE_TYPE.CHATBOT`
|
|
153
|
+
- `NODE_TYPE.AI`
|
|
154
|
+
- `NODE_TYPE.CONDITIONAL`
|
|
155
|
+
- `NODE_TYPE.TWILIO`
|
|
156
|
+
|
|
157
|
+
### Node Categories
|
|
158
|
+
- `NODE_CATEGORY.TRIGGER`
|
|
159
|
+
- `NODE_CATEGORY.ACTION`
|
|
160
|
+
|
|
161
|
+
### Workflow Status
|
|
162
|
+
- `WORKFLOW_STATUS.ACTIVE`
|
|
163
|
+
- `WORKFLOW_STATUS.INACTIVE`
|
|
164
|
+
- `WORKFLOW_STATUS.DRAFT`
|
|
165
|
+
|
|
166
|
+
### Execution Status
|
|
167
|
+
- `EXECUTION_STATUS.PENDING`
|
|
168
|
+
- `EXECUTION_STATUS.RUNNING`
|
|
169
|
+
- `EXECUTION_STATUS.COMPLETED`
|
|
170
|
+
- `EXECUTION_STATUS.FAILED`
|
|
171
|
+
- `EXECUTION_STATUS.CANCELLED`
|
|
172
|
+
|
|
173
|
+
## DTOs
|
|
174
|
+
|
|
175
|
+
All DTOs follow the `Create*Dto` pattern:
|
|
176
|
+
- `CreateWorkflowDto`
|
|
177
|
+
- `CreateWorkflowNodeDto`
|
|
178
|
+
- `CreateWorkflowEdgeDto`
|
|
179
|
+
- `CreateWorkflowExecutionDto`
|
|
180
|
+
- `CreateWorkflowSessionDto`
|
|
181
|
+
- `CreateWorkflowModuleCredentialDto`
|
|
182
|
+
- `UpdateWorkflowModuleCredentialDto`
|
|
183
|
+
|
|
184
|
+
## Database Schema
|
|
185
|
+
|
|
186
|
+
The module uses PostgreSQL with JSONB columns for flexible data storage:
|
|
187
|
+
- Node properties stored as JSONB
|
|
188
|
+
- Edge data stored as JSONB
|
|
189
|
+
- Execution input/output/error data as JSONB
|
|
190
|
+
- Session context and history as JSONB
|
|
191
|
+
- Module credentials stored as JSONB (should be encrypted at application level)
|
|
192
|
+
|
|
193
|
+
## Module Credentials
|
|
194
|
+
|
|
195
|
+
Each module can define required credential fields. Users can create multiple credential sets per module:
|
|
196
|
+
|
|
197
|
+
### Defining Credential Fields in Modules
|
|
198
|
+
|
|
199
|
+
Modules can define `credentialFields` in their module definition:
|
|
200
|
+
|
|
201
|
+
```typescript
|
|
202
|
+
credentialFields: [
|
|
203
|
+
{
|
|
204
|
+
id: 'apiKey',
|
|
205
|
+
name: 'API Key',
|
|
206
|
+
description: 'API key for the service',
|
|
207
|
+
type: FIELD_TYPE.STRING,
|
|
208
|
+
validation: { required: true },
|
|
209
|
+
sensitive: true, // Will be encrypted/masked
|
|
210
|
+
required: true,
|
|
211
|
+
},
|
|
212
|
+
]
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
### Managing Credentials
|
|
216
|
+
|
|
217
|
+
```typescript
|
|
218
|
+
// Create credentials for a module
|
|
219
|
+
const credential = await credentialService.create({
|
|
220
|
+
moduleId: 'twilio',
|
|
221
|
+
name: 'Production Twilio',
|
|
222
|
+
credentials: {
|
|
223
|
+
accountSid: 'AC...',
|
|
224
|
+
authToken: '...',
|
|
225
|
+
},
|
|
226
|
+
organizationId: 'org-123',
|
|
227
|
+
});
|
|
228
|
+
|
|
229
|
+
// Get all credentials for a module
|
|
230
|
+
const credentials = await credentialService.getCredentialsByModule(
|
|
231
|
+
'twilio',
|
|
232
|
+
'org-123'
|
|
233
|
+
);
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
## License
|
|
237
|
+
|
|
238
|
+
Part of the Venturial Core NPM package.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Response } from 'express';
|
|
2
|
+
import { WorkflowSSEService } from '../services/workflow-sse.service';
|
|
3
|
+
export declare class WorkflowSSEController {
|
|
4
|
+
private readonly sseService;
|
|
5
|
+
constructor(sseService: WorkflowSSEService);
|
|
6
|
+
streamWorkflowEvents(workflowId: string, token: string | undefined, res: Response): void;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=workflow-sse.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-sse.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/workflow-sse.controller.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE,qBACa,qBAAqB;IACpB,OAAO,CAAC,QAAQ,CAAC,UAAU;gBAAV,UAAU,EAAE,kBAAkB;IAW3D,oBAAoB,CACG,UAAU,EAAE,MAAM,EACvB,KAAK,EAAE,MAAM,GAAG,SAAS,EAClC,GAAG,EAAE,QAAQ;CAUvB"}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.WorkflowSSEController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const core_1 = require("@venturialstd/core");
|
|
18
|
+
const workflow_sse_service_1 = require("../services/workflow-sse.service");
|
|
19
|
+
let WorkflowSSEController = class WorkflowSSEController {
|
|
20
|
+
sseService;
|
|
21
|
+
constructor(sseService) {
|
|
22
|
+
this.sseService = sseService;
|
|
23
|
+
}
|
|
24
|
+
streamWorkflowEvents(workflowId, token, res) {
|
|
25
|
+
if (!token) {
|
|
26
|
+
console.warn('[SSE] No token provided, allowing unauthenticated access (dev mode)');
|
|
27
|
+
}
|
|
28
|
+
this.sseService.createEventStream(res, workflowId);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
exports.WorkflowSSEController = WorkflowSSEController;
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, core_1.Public)(),
|
|
34
|
+
(0, common_1.Get)(':workflowId'),
|
|
35
|
+
__param(0, (0, common_1.Param)('workflowId')),
|
|
36
|
+
__param(1, (0, common_1.Query)('token')),
|
|
37
|
+
__param(2, (0, common_1.Res)()),
|
|
38
|
+
__metadata("design:type", Function),
|
|
39
|
+
__metadata("design:paramtypes", [String, Object, Object]),
|
|
40
|
+
__metadata("design:returntype", void 0)
|
|
41
|
+
], WorkflowSSEController.prototype, "streamWorkflowEvents", null);
|
|
42
|
+
exports.WorkflowSSEController = WorkflowSSEController = __decorate([
|
|
43
|
+
(0, common_1.Controller)('workflow/sse'),
|
|
44
|
+
__metadata("design:paramtypes", [workflow_sse_service_1.WorkflowSSEService])
|
|
45
|
+
], WorkflowSSEController);
|
|
46
|
+
//# sourceMappingURL=workflow-sse.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-sse.controller.js","sourceRoot":"","sources":["../../src/controllers/workflow-sse.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA2F;AAC3F,6CAA4C;AAE5C,2EAAsE;AAG/D,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IACH;IAA7B,YAA6B,UAA8B;QAA9B,eAAU,GAAV,UAAU,CAAoB;IAAG,CAAC;IAW/D,oBAAoB,CACG,UAAkB,EACvB,KAAyB,EAClC,GAAa;QAIpB,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,OAAO,CAAC,IAAI,CAAC,qEAAqE,CAAC,CAAC;QACtF,CAAC;QAED,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC;IACrD,CAAC;CACF,CAAA;AAzBY,sDAAqB;AAYhC;IAFC,IAAA,aAAM,GAAE;IACR,IAAA,YAAG,EAAC,aAAa,CAAC;IAEhB,WAAA,IAAA,cAAK,EAAC,YAAY,CAAC,CAAA;IACnB,WAAA,IAAA,cAAK,EAAC,OAAO,CAAC,CAAA;IACd,WAAA,IAAA,YAAG,GAAE,CAAA;;;;iEASP;gCAxBU,qBAAqB;IADjC,IAAA,mBAAU,EAAC,cAAc,CAAC;qCAEgB,yCAAkB;GADhD,qBAAqB,CAyBjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-transaction.action.d.ts","sourceRoot":"","sources":["../../../../src/modules/circle/actions/create-transaction.action.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAGrB,eAAO,MAAM,uBAAuB,EAAE,
|
|
1
|
+
{"version":3,"file":"create-transaction.action.d.ts","sourceRoot":"","sources":["../../../../src/modules/circle/actions/create-transaction.action.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAGrB,eAAO,MAAM,uBAAuB,EAAE,qBA0QrC,CAAC"}
|
|
@@ -47,7 +47,7 @@ exports.createTransactionAction = {
|
|
|
47
47
|
{
|
|
48
48
|
id: 'tokenId',
|
|
49
49
|
name: 'Token ID',
|
|
50
|
-
description: 'Token ID (optional, for token transfers)',
|
|
50
|
+
description: 'Token ID (optional, for token transfers). Cannot be used with tokenAddress.',
|
|
51
51
|
type: types_1.FIELD_TYPE.STRING,
|
|
52
52
|
validation: {
|
|
53
53
|
required: false,
|
|
@@ -57,27 +57,77 @@ exports.createTransactionAction = {
|
|
|
57
57
|
{
|
|
58
58
|
id: 'blockchain',
|
|
59
59
|
name: 'Blockchain',
|
|
60
|
-
description: 'Blockchain identifier (
|
|
60
|
+
description: 'Blockchain identifier (required with tokenAddress)',
|
|
61
61
|
type: types_1.FIELD_TYPE.STRING,
|
|
62
62
|
validation: {
|
|
63
63
|
required: false,
|
|
64
64
|
},
|
|
65
|
-
placeholder: '
|
|
65
|
+
placeholder: 'SOL-DEVNET',
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
68
|
id: 'tokenAddress',
|
|
69
69
|
name: 'Token Address',
|
|
70
|
-
description: 'Token contract address (optional, for
|
|
70
|
+
description: 'Token contract address (optional, for custom tokens). Cannot be used with tokenId. Requires blockchain.',
|
|
71
71
|
type: types_1.FIELD_TYPE.STRING,
|
|
72
72
|
validation: {
|
|
73
73
|
required: false,
|
|
74
74
|
},
|
|
75
|
-
placeholder: '0x...',
|
|
75
|
+
placeholder: '0x... or base58 address',
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
id: 'feeLevel',
|
|
79
|
+
name: 'Fee Level',
|
|
80
|
+
description: 'Fee level for the transaction. Options: LOW, MEDIUM, HIGH (default: MEDIUM)',
|
|
81
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
82
|
+
validation: {
|
|
83
|
+
required: false,
|
|
84
|
+
},
|
|
85
|
+
placeholder: 'MEDIUM',
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
id: 'gasPrice',
|
|
89
|
+
name: 'Gas Price',
|
|
90
|
+
description: 'Gas price in wei (optional, alternative to feeLevel)',
|
|
91
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
92
|
+
validation: {
|
|
93
|
+
required: false,
|
|
94
|
+
},
|
|
95
|
+
placeholder: '1000000000',
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
id: 'gasLimit',
|
|
99
|
+
name: 'Gas Limit',
|
|
100
|
+
description: 'Gas limit for the transaction (optional, required with gasPrice)',
|
|
101
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
102
|
+
validation: {
|
|
103
|
+
required: false,
|
|
104
|
+
},
|
|
105
|
+
placeholder: '21000',
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
id: 'maxFee',
|
|
109
|
+
name: 'Max Fee',
|
|
110
|
+
description: 'Maximum fee for EIP-1559 transactions (optional)',
|
|
111
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
112
|
+
validation: {
|
|
113
|
+
required: false,
|
|
114
|
+
},
|
|
115
|
+
placeholder: '100000000000',
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
id: 'priorityFee',
|
|
119
|
+
name: 'Priority Fee',
|
|
120
|
+
description: 'Priority fee for EIP-1559 transactions (optional)',
|
|
121
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
122
|
+
validation: {
|
|
123
|
+
required: false,
|
|
124
|
+
},
|
|
125
|
+
placeholder: '2000000000',
|
|
76
126
|
},
|
|
77
127
|
{
|
|
78
128
|
id: 'fee',
|
|
79
|
-
name: 'Fee',
|
|
80
|
-
description: 'Fee configuration as JSON object (optional)',
|
|
129
|
+
name: 'Fee (Deprecated)',
|
|
130
|
+
description: 'Fee configuration as JSON object (optional, use feeLevel instead)',
|
|
81
131
|
type: types_1.FIELD_TYPE.JSON,
|
|
82
132
|
validation: {
|
|
83
133
|
required: false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-transaction.action.js","sourceRoot":"","sources":["../../../../src/modules/circle/actions/create-transaction.action.ts"],"names":[],"mappings":";;;AAAA,uCAKqB;AACrB,uFAAkF;AAErE,QAAA,uBAAuB,GAA0B;IAC5D,GAAG,EAAE,oBAAoB;IACzB,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,qDAAqD;IAClE,QAAQ,EAAE,qBAAa,CAAC,MAAM;IAC9B,IAAI,EAAE,IAAI;IACV,YAAY,EAAE,qDAA8E;IAC5F,MAAM,EAAE;QACN;YACE,EAAE,EAAE,UAAU;YACd,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,IAAI;gBACd,SAAS,EAAE,CAAC;aACb;YACD,WAAW,EAAE,WAAW;SACzB;QACD;YACE,EAAE,EAAE,SAAS;YACb,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,wEAAwE;YACrF,IAAI,EAAE,kBAAU,CAAC,KAAK;YACtB,UAAU,EAAE;gBACV,QAAQ,EAAE,IAAI;gBACd,SAAS,EAAE,CAAC;aACb;YACD,WAAW,EAAE,yBAAyB;SACvC;QACD;YACE,EAAE,EAAE,oBAAoB;YACxB,IAAI,EAAE,qBAAqB;YAC3B,WAAW,EAAE,0BAA0B;YACvC,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,IAAI;gBACd,SAAS,EAAE,CAAC;aACb;YACD,WAAW,EAAE,OAAO;SACrB;QACD;YACE,EAAE,EAAE,SAAS;YACb,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"create-transaction.action.js","sourceRoot":"","sources":["../../../../src/modules/circle/actions/create-transaction.action.ts"],"names":[],"mappings":";;;AAAA,uCAKqB;AACrB,uFAAkF;AAErE,QAAA,uBAAuB,GAA0B;IAC5D,GAAG,EAAE,oBAAoB;IACzB,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,qDAAqD;IAClE,QAAQ,EAAE,qBAAa,CAAC,MAAM;IAC9B,IAAI,EAAE,IAAI;IACV,YAAY,EAAE,qDAA8E;IAC5F,MAAM,EAAE;QACN;YACE,EAAE,EAAE,UAAU;YACd,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,+BAA+B;YAC5C,IAAI,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