@venturialstd/workflow 0.1.114 → 0.1.116
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/modules/capa/actions/cancel-transaction.action.d.ts +3 -0
- package/dist/modules/capa/actions/cancel-transaction.action.d.ts.map +1 -0
- package/dist/modules/capa/actions/cancel-transaction.action.js +58 -0
- package/dist/modules/capa/actions/cancel-transaction.action.js.map +1 -0
- package/dist/modules/capa/actions/create-cross-ramp-quote.action.d.ts +3 -0
- package/dist/modules/capa/actions/create-cross-ramp-quote.action.d.ts.map +1 -0
- package/dist/modules/capa/actions/create-cross-ramp-quote.action.js +143 -0
- package/dist/modules/capa/actions/create-cross-ramp-quote.action.js.map +1 -0
- package/dist/modules/capa/actions/create-cross-ramp.action.d.ts +3 -0
- package/dist/modules/capa/actions/create-cross-ramp.action.d.ts.map +1 -0
- package/dist/modules/capa/actions/create-cross-ramp.action.js +158 -0
- package/dist/modules/capa/actions/create-cross-ramp.action.js.map +1 -0
- package/dist/modules/capa/actions/create-kyb-verification-link.action.d.ts +3 -0
- package/dist/modules/capa/actions/create-kyb-verification-link.action.d.ts.map +1 -0
- package/dist/modules/capa/actions/create-kyb-verification-link.action.js +50 -0
- package/dist/modules/capa/actions/create-kyb-verification-link.action.js.map +1 -0
- package/dist/modules/capa/actions/create-kyc-verification-link.action.d.ts +3 -0
- package/dist/modules/capa/actions/create-kyc-verification-link.action.d.ts.map +1 -0
- package/dist/modules/capa/actions/create-kyc-verification-link.action.js +50 -0
- package/dist/modules/capa/actions/create-kyc-verification-link.action.js.map +1 -0
- package/dist/modules/capa/actions/create-off-ramp.action.d.ts +3 -0
- package/dist/modules/capa/actions/create-off-ramp.action.d.ts.map +1 -0
- package/dist/modules/capa/actions/create-off-ramp.action.js +195 -0
- package/dist/modules/capa/actions/create-off-ramp.action.js.map +1 -0
- package/dist/modules/capa/actions/create-on-ramp.action.d.ts +3 -0
- package/dist/modules/capa/actions/create-on-ramp.action.d.ts.map +1 -0
- package/dist/modules/capa/actions/create-on-ramp.action.js +195 -0
- package/dist/modules/capa/actions/create-on-ramp.action.js.map +1 -0
- package/dist/modules/capa/actions/create-quote.action.d.ts +3 -0
- package/dist/modules/capa/actions/create-quote.action.d.ts.map +1 -0
- package/dist/modules/capa/actions/create-quote.action.js +156 -0
- package/dist/modules/capa/actions/create-quote.action.js.map +1 -0
- package/dist/modules/capa/actions/create-receiver.action.d.ts +3 -0
- package/dist/modules/capa/actions/create-receiver.action.d.ts.map +1 -0
- package/dist/modules/capa/actions/create-receiver.action.js +217 -0
- package/dist/modules/capa/actions/create-receiver.action.js.map +1 -0
- package/dist/modules/capa/actions/create-user-kyc.action.d.ts +3 -0
- package/dist/modules/capa/actions/create-user-kyc.action.d.ts.map +1 -0
- package/dist/modules/capa/actions/create-user-kyc.action.js +90 -0
- package/dist/modules/capa/actions/create-user-kyc.action.js.map +1 -0
- package/dist/modules/capa/actions/create-user.action.d.ts +3 -0
- package/dist/modules/capa/actions/create-user.action.d.ts.map +1 -0
- package/dist/modules/capa/actions/create-user.action.js +110 -0
- package/dist/modules/capa/actions/create-user.action.js.map +1 -0
- package/dist/modules/capa/actions/delete-receiver.action.d.ts +3 -0
- package/dist/modules/capa/actions/delete-receiver.action.d.ts.map +1 -0
- package/dist/modules/capa/actions/delete-receiver.action.js +56 -0
- package/dist/modules/capa/actions/delete-receiver.action.js.map +1 -0
- package/dist/modules/capa/actions/get-cross-ramp-quote.action.d.ts +3 -0
- package/dist/modules/capa/actions/get-cross-ramp-quote.action.d.ts.map +1 -0
- package/dist/modules/capa/actions/get-cross-ramp-quote.action.js +143 -0
- package/dist/modules/capa/actions/get-cross-ramp-quote.action.js.map +1 -0
- package/dist/modules/capa/actions/get-kyb-details.action.d.ts +3 -0
- package/dist/modules/capa/actions/get-kyb-details.action.d.ts.map +1 -0
- package/dist/modules/capa/actions/get-kyb-details.action.js +64 -0
- package/dist/modules/capa/actions/get-kyb-details.action.js.map +1 -0
- package/dist/modules/capa/actions/get-kyc-details.action.d.ts +3 -0
- package/dist/modules/capa/actions/get-kyc-details.action.d.ts.map +1 -0
- package/dist/modules/capa/actions/get-kyc-details.action.js +100 -0
- package/dist/modules/capa/actions/get-kyc-details.action.js.map +1 -0
- package/dist/modules/capa/actions/get-mock-testing-guide.action.d.ts +3 -0
- package/dist/modules/capa/actions/get-mock-testing-guide.action.d.ts.map +1 -0
- package/dist/modules/capa/actions/get-mock-testing-guide.action.js +23 -0
- package/dist/modules/capa/actions/get-mock-testing-guide.action.js.map +1 -0
- package/dist/modules/capa/actions/get-quote.action.d.ts +3 -0
- package/dist/modules/capa/actions/get-quote.action.d.ts.map +1 -0
- package/dist/modules/capa/actions/get-quote.action.js +156 -0
- package/dist/modules/capa/actions/get-quote.action.js.map +1 -0
- package/dist/modules/capa/actions/get-user-agreements.action.d.ts +3 -0
- package/dist/modules/capa/actions/get-user-agreements.action.d.ts.map +1 -0
- package/dist/modules/capa/actions/get-user-agreements.action.js +40 -0
- package/dist/modules/capa/actions/get-user-agreements.action.js.map +1 -0
- package/dist/modules/capa/actions/index.d.ts +23 -0
- package/dist/modules/capa/actions/index.d.ts.map +1 -0
- package/dist/modules/capa/actions/index.js +39 -0
- package/dist/modules/capa/actions/index.js.map +1 -0
- package/dist/modules/capa/actions/list-receivers.action.d.ts +3 -0
- package/dist/modules/capa/actions/list-receivers.action.d.ts.map +1 -0
- package/dist/modules/capa/actions/list-receivers.action.js +51 -0
- package/dist/modules/capa/actions/list-receivers.action.js.map +1 -0
- package/dist/modules/capa/actions/list-transactions.action.d.ts +3 -0
- package/dist/modules/capa/actions/list-transactions.action.d.ts.map +1 -0
- package/dist/modules/capa/actions/list-transactions.action.js +125 -0
- package/dist/modules/capa/actions/list-transactions.action.js.map +1 -0
- package/dist/modules/capa/actions/request-document-signature.action.d.ts +3 -0
- package/dist/modules/capa/actions/request-document-signature.action.d.ts.map +1 -0
- package/dist/modules/capa/actions/request-document-signature.action.js +50 -0
- package/dist/modules/capa/actions/request-document-signature.action.js.map +1 -0
- package/dist/modules/capa/actions/update-webhook-settings.action.d.ts +3 -0
- package/dist/modules/capa/actions/update-webhook-settings.action.d.ts.map +1 -0
- package/dist/modules/capa/actions/update-webhook-settings.action.js +52 -0
- package/dist/modules/capa/actions/update-webhook-settings.action.js.map +1 -0
- package/dist/modules/capa/auth/capa-auth.service.d.ts +8 -0
- package/dist/modules/capa/auth/capa-auth.service.d.ts.map +1 -0
- package/dist/modules/capa/auth/capa-auth.service.js +94 -0
- package/dist/modules/capa/auth/capa-auth.service.js.map +1 -0
- package/dist/modules/capa/auth/index.d.ts +2 -0
- package/dist/modules/capa/auth/index.d.ts.map +1 -0
- package/dist/modules/capa/auth/index.js +18 -0
- package/dist/modules/capa/auth/index.js.map +1 -0
- package/dist/modules/capa/capa-nest.module.d.ts +3 -0
- package/dist/modules/capa/capa-nest.module.d.ts.map +1 -0
- package/dist/modules/capa/capa-nest.module.js +72 -0
- package/dist/modules/capa/capa-nest.module.js.map +1 -0
- package/dist/modules/capa/capa.module.d.ts +3 -0
- package/dist/modules/capa/capa.module.d.ts.map +1 -0
- package/dist/modules/capa/capa.module.js +42 -0
- package/dist/modules/capa/capa.module.js.map +1 -0
- package/dist/modules/capa/credentials.d.ts +3 -0
- package/dist/modules/capa/credentials.d.ts.map +1 -0
- package/dist/modules/capa/credentials.js +46 -0
- package/dist/modules/capa/credentials.js.map +1 -0
- package/dist/modules/capa/services/cancel-transaction.service.d.ts +9 -0
- package/dist/modules/capa/services/cancel-transaction.service.d.ts.map +1 -0
- package/dist/modules/capa/services/cancel-transaction.service.js +45 -0
- package/dist/modules/capa/services/cancel-transaction.service.js.map +1 -0
- package/dist/modules/capa/services/create-cross-ramp-quote.service.d.ts +9 -0
- package/dist/modules/capa/services/create-cross-ramp-quote.service.d.ts.map +1 -0
- package/dist/modules/capa/services/create-cross-ramp-quote.service.js +75 -0
- package/dist/modules/capa/services/create-cross-ramp-quote.service.js.map +1 -0
- package/dist/modules/capa/services/create-cross-ramp.service.d.ts +9 -0
- package/dist/modules/capa/services/create-cross-ramp.service.d.ts.map +1 -0
- package/dist/modules/capa/services/create-cross-ramp.service.js +66 -0
- package/dist/modules/capa/services/create-cross-ramp.service.js.map +1 -0
- package/dist/modules/capa/services/create-kyb-verification-link.service.d.ts +9 -0
- package/dist/modules/capa/services/create-kyb-verification-link.service.d.ts.map +1 -0
- package/dist/modules/capa/services/create-kyb-verification-link.service.js +47 -0
- package/dist/modules/capa/services/create-kyb-verification-link.service.js.map +1 -0
- package/dist/modules/capa/services/create-kyc-verification-link.service.d.ts +9 -0
- package/dist/modules/capa/services/create-kyc-verification-link.service.d.ts.map +1 -0
- package/dist/modules/capa/services/create-kyc-verification-link.service.js +47 -0
- package/dist/modules/capa/services/create-kyc-verification-link.service.js.map +1 -0
- package/dist/modules/capa/services/create-off-ramp.service.d.ts +9 -0
- package/dist/modules/capa/services/create-off-ramp.service.d.ts.map +1 -0
- package/dist/modules/capa/services/create-off-ramp.service.js +80 -0
- package/dist/modules/capa/services/create-off-ramp.service.js.map +1 -0
- package/dist/modules/capa/services/create-on-ramp.service.d.ts +9 -0
- package/dist/modules/capa/services/create-on-ramp.service.d.ts.map +1 -0
- package/dist/modules/capa/services/create-on-ramp.service.js +80 -0
- package/dist/modules/capa/services/create-on-ramp.service.js.map +1 -0
- package/dist/modules/capa/services/create-quote.service.d.ts +9 -0
- package/dist/modules/capa/services/create-quote.service.d.ts.map +1 -0
- package/dist/modules/capa/services/create-quote.service.js +77 -0
- package/dist/modules/capa/services/create-quote.service.js.map +1 -0
- package/dist/modules/capa/services/create-receiver.service.d.ts +9 -0
- package/dist/modules/capa/services/create-receiver.service.d.ts.map +1 -0
- package/dist/modules/capa/services/create-receiver.service.js +79 -0
- package/dist/modules/capa/services/create-receiver.service.js.map +1 -0
- package/dist/modules/capa/services/create-user-kyc.service.d.ts +9 -0
- package/dist/modules/capa/services/create-user-kyc.service.d.ts.map +1 -0
- package/dist/modules/capa/services/create-user-kyc.service.js +54 -0
- package/dist/modules/capa/services/create-user-kyc.service.js.map +1 -0
- package/dist/modules/capa/services/create-user.service.d.ts +9 -0
- package/dist/modules/capa/services/create-user.service.d.ts.map +1 -0
- package/dist/modules/capa/services/create-user.service.js +57 -0
- package/dist/modules/capa/services/create-user.service.js.map +1 -0
- package/dist/modules/capa/services/delete-receiver.service.d.ts +9 -0
- package/dist/modules/capa/services/delete-receiver.service.d.ts.map +1 -0
- package/dist/modules/capa/services/delete-receiver.service.js +47 -0
- package/dist/modules/capa/services/delete-receiver.service.js.map +1 -0
- package/dist/modules/capa/services/get-cross-ramp-quote.service.d.ts +9 -0
- package/dist/modules/capa/services/get-cross-ramp-quote.service.d.ts.map +1 -0
- package/dist/modules/capa/services/get-cross-ramp-quote.service.js +75 -0
- package/dist/modules/capa/services/get-cross-ramp-quote.service.js.map +1 -0
- package/dist/modules/capa/services/get-kyb-details.service.d.ts +9 -0
- package/dist/modules/capa/services/get-kyb-details.service.d.ts.map +1 -0
- package/dist/modules/capa/services/get-kyb-details.service.js +46 -0
- package/dist/modules/capa/services/get-kyb-details.service.js.map +1 -0
- package/dist/modules/capa/services/get-kyc-details.service.d.ts +9 -0
- package/dist/modules/capa/services/get-kyc-details.service.d.ts.map +1 -0
- package/dist/modules/capa/services/get-kyc-details.service.js +52 -0
- package/dist/modules/capa/services/get-kyc-details.service.js.map +1 -0
- package/dist/modules/capa/services/get-mock-testing-guide.service.d.ts +9 -0
- package/dist/modules/capa/services/get-mock-testing-guide.service.d.ts.map +1 -0
- package/dist/modules/capa/services/get-mock-testing-guide.service.js +37 -0
- package/dist/modules/capa/services/get-mock-testing-guide.service.js.map +1 -0
- package/dist/modules/capa/services/get-quote.service.d.ts +9 -0
- package/dist/modules/capa/services/get-quote.service.d.ts.map +1 -0
- package/dist/modules/capa/services/get-quote.service.js +77 -0
- package/dist/modules/capa/services/get-quote.service.js.map +1 -0
- package/dist/modules/capa/services/get-user-agreements.service.d.ts +9 -0
- package/dist/modules/capa/services/get-user-agreements.service.d.ts.map +1 -0
- package/dist/modules/capa/services/get-user-agreements.service.js +42 -0
- package/dist/modules/capa/services/get-user-agreements.service.js.map +1 -0
- package/dist/modules/capa/services/index.d.ts +23 -0
- package/dist/modules/capa/services/index.d.ts.map +1 -0
- package/dist/modules/capa/services/index.js +39 -0
- package/dist/modules/capa/services/index.js.map +1 -0
- package/dist/modules/capa/services/list-receivers.service.d.ts +9 -0
- package/dist/modules/capa/services/list-receivers.service.d.ts.map +1 -0
- package/dist/modules/capa/services/list-receivers.service.js +45 -0
- package/dist/modules/capa/services/list-receivers.service.js.map +1 -0
- package/dist/modules/capa/services/list-transactions.service.d.ts +9 -0
- package/dist/modules/capa/services/list-transactions.service.d.ts.map +1 -0
- package/dist/modules/capa/services/list-transactions.service.js +58 -0
- package/dist/modules/capa/services/list-transactions.service.js.map +1 -0
- package/dist/modules/capa/services/request-document-signature.service.d.ts +9 -0
- package/dist/modules/capa/services/request-document-signature.service.d.ts.map +1 -0
- package/dist/modules/capa/services/request-document-signature.service.js +46 -0
- package/dist/modules/capa/services/request-document-signature.service.js.map +1 -0
- package/dist/modules/capa/services/update-webhook-settings.service.d.ts +9 -0
- package/dist/modules/capa/services/update-webhook-settings.service.d.ts.map +1 -0
- package/dist/modules/capa/services/update-webhook-settings.service.js +47 -0
- package/dist/modules/capa/services/update-webhook-settings.service.js.map +1 -0
- package/dist/modules/capa/triggers/index.d.ts +3 -0
- package/dist/modules/capa/triggers/index.d.ts.map +1 -0
- package/dist/modules/capa/triggers/index.js +5 -0
- package/dist/modules/capa/triggers/index.js.map +1 -0
- package/dist/modules/capa/utils/capa-credentials.util.d.ts +4 -0
- package/dist/modules/capa/utils/capa-credentials.util.d.ts.map +1 -0
- package/dist/modules/capa/utils/capa-credentials.util.js +24 -0
- package/dist/modules/capa/utils/capa-credentials.util.js.map +1 -0
- package/dist/modules/capa/utils/capa-query.util.d.ts +4 -0
- package/dist/modules/capa/utils/capa-query.util.d.ts.map +1 -0
- package/dist/modules/capa/utils/capa-query.util.js +55 -0
- package/dist/modules/capa/utils/capa-query.util.js.map +1 -0
- package/dist/modules/chatgpt/actions/chat-completion.action.d.ts +3 -0
- package/dist/modules/chatgpt/actions/chat-completion.action.d.ts.map +1 -0
- package/dist/modules/chatgpt/actions/chat-completion.action.js +116 -0
- package/dist/modules/chatgpt/actions/chat-completion.action.js.map +1 -0
- package/dist/modules/chatgpt/actions/create-embedding.action.d.ts +3 -0
- package/dist/modules/chatgpt/actions/create-embedding.action.d.ts.map +1 -0
- package/dist/modules/chatgpt/actions/create-embedding.action.js +71 -0
- package/dist/modules/chatgpt/actions/create-embedding.action.js.map +1 -0
- package/dist/modules/chatgpt/actions/generate-image.action.d.ts +3 -0
- package/dist/modules/chatgpt/actions/generate-image.action.d.ts.map +1 -0
- package/dist/modules/chatgpt/actions/generate-image.action.js +103 -0
- package/dist/modules/chatgpt/actions/generate-image.action.js.map +1 -0
- package/dist/modules/chatgpt/actions/index.d.ts +6 -0
- package/dist/modules/chatgpt/actions/index.d.ts.map +1 -0
- package/dist/modules/chatgpt/actions/index.js +22 -0
- package/dist/modules/chatgpt/actions/index.js.map +1 -0
- package/dist/modules/chatgpt/actions/speech-to-text.action.d.ts +3 -0
- package/dist/modules/chatgpt/actions/speech-to-text.action.d.ts.map +1 -0
- package/dist/modules/chatgpt/actions/speech-to-text.action.js +83 -0
- package/dist/modules/chatgpt/actions/speech-to-text.action.js.map +1 -0
- package/dist/modules/chatgpt/actions/text-to-speech.action.d.ts +3 -0
- package/dist/modules/chatgpt/actions/text-to-speech.action.d.ts.map +1 -0
- package/dist/modules/chatgpt/actions/text-to-speech.action.js +111 -0
- package/dist/modules/chatgpt/actions/text-to-speech.action.js.map +1 -0
- package/dist/modules/chatgpt/chatgpt-nest.module.d.ts +3 -0
- package/dist/modules/chatgpt/chatgpt-nest.module.d.ts.map +1 -0
- package/dist/modules/chatgpt/chatgpt-nest.module.js +35 -0
- package/dist/modules/chatgpt/chatgpt-nest.module.js.map +1 -0
- package/dist/modules/chatgpt/chatgpt.module.d.ts +3 -0
- package/dist/modules/chatgpt/chatgpt.module.d.ts.map +1 -0
- package/dist/modules/chatgpt/chatgpt.module.js +22 -0
- package/dist/modules/chatgpt/chatgpt.module.js.map +1 -0
- package/dist/modules/chatgpt/credentials.d.ts +3 -0
- package/dist/modules/chatgpt/credentials.d.ts.map +1 -0
- package/dist/modules/chatgpt/credentials.js +32 -0
- package/dist/modules/chatgpt/credentials.js.map +1 -0
- package/dist/modules/chatgpt/services/chat-completion.service.d.ts +9 -0
- package/dist/modules/chatgpt/services/chat-completion.service.d.ts.map +1 -0
- package/dist/modules/chatgpt/services/chat-completion.service.js +78 -0
- package/dist/modules/chatgpt/services/chat-completion.service.js.map +1 -0
- package/dist/modules/chatgpt/services/create-embedding.service.d.ts +8 -0
- package/dist/modules/chatgpt/services/create-embedding.service.d.ts.map +1 -0
- package/dist/modules/chatgpt/services/create-embedding.service.js +65 -0
- package/dist/modules/chatgpt/services/create-embedding.service.js.map +1 -0
- package/dist/modules/chatgpt/services/generate-image.service.d.ts +8 -0
- package/dist/modules/chatgpt/services/generate-image.service.d.ts.map +1 -0
- package/dist/modules/chatgpt/services/generate-image.service.js +56 -0
- package/dist/modules/chatgpt/services/generate-image.service.js.map +1 -0
- package/dist/modules/chatgpt/services/index.d.ts +6 -0
- package/dist/modules/chatgpt/services/index.d.ts.map +1 -0
- package/dist/modules/chatgpt/services/index.js +22 -0
- package/dist/modules/chatgpt/services/index.js.map +1 -0
- package/dist/modules/chatgpt/services/speech-to-text.service.d.ts +8 -0
- package/dist/modules/chatgpt/services/speech-to-text.service.d.ts.map +1 -0
- package/dist/modules/chatgpt/services/speech-to-text.service.js +54 -0
- package/dist/modules/chatgpt/services/speech-to-text.service.js.map +1 -0
- package/dist/modules/chatgpt/services/text-to-speech.service.d.ts +8 -0
- package/dist/modules/chatgpt/services/text-to-speech.service.d.ts.map +1 -0
- package/dist/modules/chatgpt/services/text-to-speech.service.js +55 -0
- package/dist/modules/chatgpt/services/text-to-speech.service.js.map +1 -0
- package/dist/modules/email/actions/index.d.ts +3 -0
- package/dist/modules/email/actions/index.d.ts.map +1 -0
- package/dist/modules/email/actions/index.js +19 -0
- package/dist/modules/email/actions/index.js.map +1 -0
- package/dist/modules/email/actions/send-email.action.d.ts +3 -0
- package/dist/modules/email/actions/send-email.action.d.ts.map +1 -0
- package/dist/modules/email/actions/send-email.action.js +84 -0
- package/dist/modules/email/actions/send-email.action.js.map +1 -0
- package/dist/modules/email/actions/send-template-email.action.d.ts +3 -0
- package/dist/modules/email/actions/send-template-email.action.d.ts.map +1 -0
- package/dist/modules/email/actions/send-template-email.action.js +91 -0
- package/dist/modules/email/actions/send-template-email.action.js.map +1 -0
- package/dist/modules/email/auth/email-auth.service.d.ts +9 -0
- package/dist/modules/email/auth/email-auth.service.d.ts.map +1 -0
- package/dist/modules/email/auth/email-auth.service.js +150 -0
- package/dist/modules/email/auth/email-auth.service.js.map +1 -0
- package/dist/modules/email/auth/index.d.ts +2 -0
- package/dist/modules/email/auth/index.d.ts.map +1 -0
- package/dist/modules/email/auth/index.js +18 -0
- package/dist/modules/email/auth/index.js.map +1 -0
- package/dist/modules/email/credentials.d.ts +3 -0
- package/dist/modules/email/credentials.d.ts.map +1 -0
- package/dist/modules/email/credentials.js +81 -0
- package/dist/modules/email/credentials.js.map +1 -0
- package/dist/modules/email/email-nest.module.d.ts +3 -0
- package/dist/modules/email/email-nest.module.d.ts.map +1 -0
- package/dist/modules/email/email-nest.module.js +24 -0
- package/dist/modules/email/email-nest.module.js.map +1 -0
- package/dist/modules/email/email.module.d.ts +3 -0
- package/dist/modules/email/email.module.d.ts.map +1 -0
- package/dist/modules/email/email.module.js +19 -0
- package/dist/modules/email/email.module.js.map +1 -0
- package/dist/modules/email/services/index.d.ts +3 -0
- package/dist/modules/email/services/index.d.ts.map +1 -0
- package/dist/modules/email/services/index.js +19 -0
- package/dist/modules/email/services/index.js.map +1 -0
- package/dist/modules/email/services/send-email.service.d.ts +9 -0
- package/dist/modules/email/services/send-email.service.d.ts.map +1 -0
- package/dist/modules/email/services/send-email.service.js +99 -0
- package/dist/modules/email/services/send-email.service.js.map +1 -0
- package/dist/modules/email/services/send-template-email.service.d.ts +9 -0
- package/dist/modules/email/services/send-template-email.service.d.ts.map +1 -0
- package/dist/modules/email/services/send-template-email.service.js +99 -0
- package/dist/modules/email/services/send-template-email.service.js.map +1 -0
- package/dist/modules/email/utils/template-options.util.d.ts +6 -0
- package/dist/modules/email/utils/template-options.util.d.ts.map +1 -0
- package/dist/modules/email/utils/template-options.util.js +30 -0
- package/dist/modules/email/utils/template-options.util.js.map +1 -0
- package/dist/modules/inbestgo/auth/inbestgo-auth.service.d.ts.map +1 -1
- package/dist/modules/inbestgo/auth/inbestgo-auth.service.js.map +1 -1
- package/dist/modules/inbestgo/services/lookup-user-by-phone.service.d.ts.map +1 -1
- package/dist/modules/inbestgo/services/lookup-user-by-phone.service.js.map +1 -1
- package/dist/modules/index.d.ts +4 -0
- package/dist/modules/index.d.ts.map +1 -1
- package/dist/modules/index.js +17 -1
- package/dist/modules/index.js.map +1 -1
- package/dist/modules/slack/actions/add-reaction.action.d.ts +3 -0
- package/dist/modules/slack/actions/add-reaction.action.d.ts.map +1 -0
- package/dist/modules/slack/actions/add-reaction.action.js +63 -0
- package/dist/modules/slack/actions/add-reaction.action.js.map +1 -0
- package/dist/modules/slack/actions/archive-conversation.action.d.ts +3 -0
- package/dist/modules/slack/actions/archive-conversation.action.d.ts.map +1 -0
- package/dist/modules/slack/actions/archive-conversation.action.js +41 -0
- package/dist/modules/slack/actions/archive-conversation.action.js.map +1 -0
- package/dist/modules/slack/actions/complete-upload-external.action.d.ts +3 -0
- package/dist/modules/slack/actions/complete-upload-external.action.d.ts.map +1 -0
- package/dist/modules/slack/actions/complete-upload-external.action.js +76 -0
- package/dist/modules/slack/actions/complete-upload-external.action.js.map +1 -0
- package/dist/modules/slack/actions/create-conversation.action.d.ts +3 -0
- package/dist/modules/slack/actions/create-conversation.action.d.ts.map +1 -0
- package/dist/modules/slack/actions/create-conversation.action.js +67 -0
- package/dist/modules/slack/actions/create-conversation.action.js.map +1 -0
- package/dist/modules/slack/actions/create-reminder.action.d.ts +3 -0
- package/dist/modules/slack/actions/create-reminder.action.d.ts.map +1 -0
- package/dist/modules/slack/actions/create-reminder.action.js +68 -0
- package/dist/modules/slack/actions/create-reminder.action.js.map +1 -0
- package/dist/modules/slack/actions/delete-message.action.d.ts +3 -0
- package/dist/modules/slack/actions/delete-message.action.d.ts.map +1 -0
- package/dist/modules/slack/actions/delete-message.action.js +74 -0
- package/dist/modules/slack/actions/delete-message.action.js.map +1 -0
- package/dist/modules/slack/actions/get-conversation-history.action.d.ts +3 -0
- package/dist/modules/slack/actions/get-conversation-history.action.d.ts.map +1 -0
- package/dist/modules/slack/actions/get-conversation-history.action.js +116 -0
- package/dist/modules/slack/actions/get-conversation-history.action.js.map +1 -0
- package/dist/modules/slack/actions/get-conversation-info.action.d.ts +3 -0
- package/dist/modules/slack/actions/get-conversation-info.action.d.ts.map +1 -0
- package/dist/modules/slack/actions/get-conversation-info.action.js +67 -0
- package/dist/modules/slack/actions/get-conversation-info.action.js.map +1 -0
- package/dist/modules/slack/actions/get-message-permalink.action.d.ts +3 -0
- package/dist/modules/slack/actions/get-message-permalink.action.d.ts.map +1 -0
- package/dist/modules/slack/actions/get-message-permalink.action.js +64 -0
- package/dist/modules/slack/actions/get-message-permalink.action.js.map +1 -0
- package/dist/modules/slack/actions/get-team-info.action.d.ts +3 -0
- package/dist/modules/slack/actions/get-team-info.action.d.ts.map +1 -0
- package/dist/modules/slack/actions/get-team-info.action.js +46 -0
- package/dist/modules/slack/actions/get-team-info.action.js.map +1 -0
- package/dist/modules/slack/actions/get-thread-replies.action.d.ts +3 -0
- package/dist/modules/slack/actions/get-thread-replies.action.d.ts.map +1 -0
- package/dist/modules/slack/actions/get-thread-replies.action.js +121 -0
- package/dist/modules/slack/actions/get-thread-replies.action.js.map +1 -0
- package/dist/modules/slack/actions/get-upload-url-external.action.d.ts +3 -0
- package/dist/modules/slack/actions/get-upload-url-external.action.d.ts.map +1 -0
- package/dist/modules/slack/actions/get-upload-url-external.action.js +64 -0
- package/dist/modules/slack/actions/get-upload-url-external.action.js.map +1 -0
- package/dist/modules/slack/actions/get-user-info.action.d.ts +3 -0
- package/dist/modules/slack/actions/get-user-info.action.d.ts.map +1 -0
- package/dist/modules/slack/actions/get-user-info.action.js +57 -0
- package/dist/modules/slack/actions/get-user-info.action.js.map +1 -0
- package/dist/modules/slack/actions/index.d.ts +30 -0
- package/dist/modules/slack/actions/index.d.ts.map +1 -0
- package/dist/modules/slack/actions/index.js +46 -0
- package/dist/modules/slack/actions/index.js.map +1 -0
- package/dist/modules/slack/actions/invite-to-conversation.action.d.ts +3 -0
- package/dist/modules/slack/actions/invite-to-conversation.action.d.ts.map +1 -0
- package/dist/modules/slack/actions/invite-to-conversation.action.js +58 -0
- package/dist/modules/slack/actions/invite-to-conversation.action.js.map +1 -0
- package/dist/modules/slack/actions/join-conversation.action.d.ts +3 -0
- package/dist/modules/slack/actions/join-conversation.action.d.ts.map +1 -0
- package/dist/modules/slack/actions/join-conversation.action.js +53 -0
- package/dist/modules/slack/actions/join-conversation.action.js.map +1 -0
- package/dist/modules/slack/actions/list-conversations.action.d.ts +3 -0
- package/dist/modules/slack/actions/list-conversations.action.d.ts.map +1 -0
- package/dist/modules/slack/actions/list-conversations.action.js +93 -0
- package/dist/modules/slack/actions/list-conversations.action.js.map +1 -0
- package/dist/modules/slack/actions/list-emoji.action.d.ts +3 -0
- package/dist/modules/slack/actions/list-emoji.action.d.ts.map +1 -0
- package/dist/modules/slack/actions/list-emoji.action.js +41 -0
- package/dist/modules/slack/actions/list-emoji.action.js.map +1 -0
- package/dist/modules/slack/actions/list-files.action.d.ts +3 -0
- package/dist/modules/slack/actions/list-files.action.d.ts.map +1 -0
- package/dist/modules/slack/actions/list-files.action.js +142 -0
- package/dist/modules/slack/actions/list-files.action.js.map +1 -0
- package/dist/modules/slack/actions/list-users.action.d.ts +3 -0
- package/dist/modules/slack/actions/list-users.action.d.ts.map +1 -0
- package/dist/modules/slack/actions/list-users.action.js +88 -0
- package/dist/modules/slack/actions/list-users.action.js.map +1 -0
- package/dist/modules/slack/actions/lookup-user-by-email.action.d.ts +3 -0
- package/dist/modules/slack/actions/lookup-user-by-email.action.d.ts.map +1 -0
- package/dist/modules/slack/actions/lookup-user-by-email.action.js +46 -0
- package/dist/modules/slack/actions/lookup-user-by-email.action.js.map +1 -0
- package/dist/modules/slack/actions/open-view.action.d.ts +3 -0
- package/dist/modules/slack/actions/open-view.action.d.ts.map +1 -0
- package/dist/modules/slack/actions/open-view.action.js +57 -0
- package/dist/modules/slack/actions/open-view.action.js.map +1 -0
- package/dist/modules/slack/actions/pin-message.action.d.ts +3 -0
- package/dist/modules/slack/actions/pin-message.action.d.ts.map +1 -0
- package/dist/modules/slack/actions/pin-message.action.js +71 -0
- package/dist/modules/slack/actions/pin-message.action.js.map +1 -0
- package/dist/modules/slack/actions/post-message.action.d.ts +3 -0
- package/dist/modules/slack/actions/post-message.action.d.ts.map +1 -0
- package/dist/modules/slack/actions/post-message.action.js +183 -0
- package/dist/modules/slack/actions/post-message.action.js.map +1 -0
- package/dist/modules/slack/actions/remove-reaction.action.d.ts +3 -0
- package/dist/modules/slack/actions/remove-reaction.action.d.ts.map +1 -0
- package/dist/modules/slack/actions/remove-reaction.action.js +63 -0
- package/dist/modules/slack/actions/remove-reaction.action.js.map +1 -0
- package/dist/modules/slack/actions/schedule-message.action.d.ts +3 -0
- package/dist/modules/slack/actions/schedule-message.action.d.ts.map +1 -0
- package/dist/modules/slack/actions/schedule-message.action.js +96 -0
- package/dist/modules/slack/actions/schedule-message.action.js.map +1 -0
- package/dist/modules/slack/actions/search-messages.action.d.ts +3 -0
- package/dist/modules/slack/actions/search-messages.action.d.ts.map +1 -0
- package/dist/modules/slack/actions/search-messages.action.js +116 -0
- package/dist/modules/slack/actions/search-messages.action.js.map +1 -0
- package/dist/modules/slack/actions/set-conversation-topic.action.d.ts +3 -0
- package/dist/modules/slack/actions/set-conversation-topic.action.d.ts.map +1 -0
- package/dist/modules/slack/actions/set-conversation-topic.action.js +59 -0
- package/dist/modules/slack/actions/set-conversation-topic.action.js.map +1 -0
- package/dist/modules/slack/actions/update-message.action.d.ts +3 -0
- package/dist/modules/slack/actions/update-message.action.d.ts.map +1 -0
- package/dist/modules/slack/actions/update-message.action.js +139 -0
- package/dist/modules/slack/actions/update-message.action.js.map +1 -0
- package/dist/modules/slack/actions/upload-file.action.d.ts +3 -0
- package/dist/modules/slack/actions/upload-file.action.d.ts.map +1 -0
- package/dist/modules/slack/actions/upload-file.action.js +114 -0
- package/dist/modules/slack/actions/upload-file.action.js.map +1 -0
- package/dist/modules/slack/auth/index.d.ts +2 -0
- package/dist/modules/slack/auth/index.d.ts.map +1 -0
- package/dist/modules/slack/auth/index.js +18 -0
- package/dist/modules/slack/auth/index.js.map +1 -0
- package/dist/modules/slack/auth/slack-auth.service.d.ts +8 -0
- package/dist/modules/slack/auth/slack-auth.service.d.ts.map +1 -0
- package/dist/modules/slack/auth/slack-auth.service.js +78 -0
- package/dist/modules/slack/auth/slack-auth.service.js.map +1 -0
- package/dist/modules/slack/credentials.d.ts +3 -0
- package/dist/modules/slack/credentials.d.ts.map +1 -0
- package/dist/modules/slack/credentials.js +20 -0
- package/dist/modules/slack/credentials.js.map +1 -0
- package/dist/modules/slack/services/add-reaction.service.d.ts +8 -0
- package/dist/modules/slack/services/add-reaction.service.d.ts.map +1 -0
- package/dist/modules/slack/services/add-reaction.service.js +52 -0
- package/dist/modules/slack/services/add-reaction.service.js.map +1 -0
- package/dist/modules/slack/services/archive-conversation.service.d.ts +8 -0
- package/dist/modules/slack/services/archive-conversation.service.d.ts.map +1 -0
- package/dist/modules/slack/services/archive-conversation.service.js +42 -0
- package/dist/modules/slack/services/archive-conversation.service.js.map +1 -0
- package/dist/modules/slack/services/complete-upload-external.service.d.ts +8 -0
- package/dist/modules/slack/services/complete-upload-external.service.d.ts.map +1 -0
- package/dist/modules/slack/services/complete-upload-external.service.js +49 -0
- package/dist/modules/slack/services/complete-upload-external.service.js.map +1 -0
- package/dist/modules/slack/services/create-conversation.service.d.ts +8 -0
- package/dist/modules/slack/services/create-conversation.service.d.ts.map +1 -0
- package/dist/modules/slack/services/create-conversation.service.js +47 -0
- package/dist/modules/slack/services/create-conversation.service.js.map +1 -0
- package/dist/modules/slack/services/create-reminder.service.d.ts +8 -0
- package/dist/modules/slack/services/create-reminder.service.d.ts.map +1 -0
- package/dist/modules/slack/services/create-reminder.service.js +50 -0
- package/dist/modules/slack/services/create-reminder.service.js.map +1 -0
- package/dist/modules/slack/services/delete-message.service.d.ts +8 -0
- package/dist/modules/slack/services/delete-message.service.d.ts.map +1 -0
- package/dist/modules/slack/services/delete-message.service.js +51 -0
- package/dist/modules/slack/services/delete-message.service.js.map +1 -0
- package/dist/modules/slack/services/get-conversation-history.service.d.ts +8 -0
- package/dist/modules/slack/services/get-conversation-history.service.d.ts.map +1 -0
- package/dist/modules/slack/services/get-conversation-history.service.js +56 -0
- package/dist/modules/slack/services/get-conversation-history.service.js.map +1 -0
- package/dist/modules/slack/services/get-conversation-info.service.d.ts +8 -0
- package/dist/modules/slack/services/get-conversation-info.service.d.ts.map +1 -0
- package/dist/modules/slack/services/get-conversation-info.service.js +47 -0
- package/dist/modules/slack/services/get-conversation-info.service.js.map +1 -0
- package/dist/modules/slack/services/get-message-permalink.service.d.ts +8 -0
- package/dist/modules/slack/services/get-message-permalink.service.d.ts.map +1 -0
- package/dist/modules/slack/services/get-message-permalink.service.js +49 -0
- package/dist/modules/slack/services/get-message-permalink.service.js.map +1 -0
- package/dist/modules/slack/services/get-team-info.service.d.ts +8 -0
- package/dist/modules/slack/services/get-team-info.service.d.ts.map +1 -0
- package/dist/modules/slack/services/get-team-info.service.js +40 -0
- package/dist/modules/slack/services/get-team-info.service.js.map +1 -0
- package/dist/modules/slack/services/get-thread-replies.service.d.ts +8 -0
- package/dist/modules/slack/services/get-thread-replies.service.d.ts.map +1 -0
- package/dist/modules/slack/services/get-thread-replies.service.js +60 -0
- package/dist/modules/slack/services/get-thread-replies.service.js.map +1 -0
- package/dist/modules/slack/services/get-upload-url-external.service.d.ts +8 -0
- package/dist/modules/slack/services/get-upload-url-external.service.d.ts.map +1 -0
- package/dist/modules/slack/services/get-upload-url-external.service.js +49 -0
- package/dist/modules/slack/services/get-upload-url-external.service.js.map +1 -0
- package/dist/modules/slack/services/get-user-info.service.d.ts +8 -0
- package/dist/modules/slack/services/get-user-info.service.d.ts.map +1 -0
- package/dist/modules/slack/services/get-user-info.service.js +45 -0
- package/dist/modules/slack/services/get-user-info.service.js.map +1 -0
- package/dist/modules/slack/services/index.d.ts +31 -0
- package/dist/modules/slack/services/index.d.ts.map +1 -0
- package/dist/modules/slack/services/index.js +47 -0
- package/dist/modules/slack/services/index.js.map +1 -0
- package/dist/modules/slack/services/invite-to-conversation.service.d.ts +8 -0
- package/dist/modules/slack/services/invite-to-conversation.service.d.ts.map +1 -0
- package/dist/modules/slack/services/invite-to-conversation.service.js +49 -0
- package/dist/modules/slack/services/invite-to-conversation.service.js.map +1 -0
- package/dist/modules/slack/services/join-conversation.service.d.ts +8 -0
- package/dist/modules/slack/services/join-conversation.service.d.ts.map +1 -0
- package/dist/modules/slack/services/join-conversation.service.js +44 -0
- package/dist/modules/slack/services/join-conversation.service.js.map +1 -0
- package/dist/modules/slack/services/list-conversations.service.d.ts +8 -0
- package/dist/modules/slack/services/list-conversations.service.d.ts.map +1 -0
- package/dist/modules/slack/services/list-conversations.service.js +49 -0
- package/dist/modules/slack/services/list-conversations.service.js.map +1 -0
- package/dist/modules/slack/services/list-emoji.service.d.ts +8 -0
- package/dist/modules/slack/services/list-emoji.service.d.ts.map +1 -0
- package/dist/modules/slack/services/list-emoji.service.js +38 -0
- package/dist/modules/slack/services/list-emoji.service.js.map +1 -0
- package/dist/modules/slack/services/list-files.service.d.ts +8 -0
- package/dist/modules/slack/services/list-files.service.d.ts.map +1 -0
- package/dist/modules/slack/services/list-files.service.js +59 -0
- package/dist/modules/slack/services/list-files.service.js.map +1 -0
- package/dist/modules/slack/services/list-users.service.d.ts +8 -0
- package/dist/modules/slack/services/list-users.service.d.ts.map +1 -0
- package/dist/modules/slack/services/list-users.service.js +48 -0
- package/dist/modules/slack/services/list-users.service.js.map +1 -0
- package/dist/modules/slack/services/lookup-user-by-email.service.d.ts +8 -0
- package/dist/modules/slack/services/lookup-user-by-email.service.d.ts.map +1 -0
- package/dist/modules/slack/services/lookup-user-by-email.service.js +43 -0
- package/dist/modules/slack/services/lookup-user-by-email.service.js.map +1 -0
- package/dist/modules/slack/services/message-received.service.d.ts +30 -0
- package/dist/modules/slack/services/message-received.service.d.ts.map +1 -0
- package/dist/modules/slack/services/message-received.service.js +220 -0
- package/dist/modules/slack/services/message-received.service.js.map +1 -0
- package/dist/modules/slack/services/open-view.service.d.ts +8 -0
- package/dist/modules/slack/services/open-view.service.d.ts.map +1 -0
- package/dist/modules/slack/services/open-view.service.js +48 -0
- package/dist/modules/slack/services/open-view.service.js.map +1 -0
- package/dist/modules/slack/services/pin-message.service.d.ts +8 -0
- package/dist/modules/slack/services/pin-message.service.d.ts.map +1 -0
- package/dist/modules/slack/services/pin-message.service.js +51 -0
- package/dist/modules/slack/services/pin-message.service.js.map +1 -0
- package/dist/modules/slack/services/post-message.service.d.ts +8 -0
- package/dist/modules/slack/services/post-message.service.d.ts.map +1 -0
- package/dist/modules/slack/services/post-message.service.js +72 -0
- package/dist/modules/slack/services/post-message.service.js.map +1 -0
- package/dist/modules/slack/services/remove-reaction.service.d.ts +8 -0
- package/dist/modules/slack/services/remove-reaction.service.d.ts.map +1 -0
- package/dist/modules/slack/services/remove-reaction.service.js +52 -0
- package/dist/modules/slack/services/remove-reaction.service.js.map +1 -0
- package/dist/modules/slack/services/schedule-message.service.d.ts +8 -0
- package/dist/modules/slack/services/schedule-message.service.d.ts.map +1 -0
- package/dist/modules/slack/services/schedule-message.service.js +59 -0
- package/dist/modules/slack/services/schedule-message.service.js.map +1 -0
- package/dist/modules/slack/services/search-messages.service.d.ts +8 -0
- package/dist/modules/slack/services/search-messages.service.d.ts.map +1 -0
- package/dist/modules/slack/services/search-messages.service.js +54 -0
- package/dist/modules/slack/services/search-messages.service.js.map +1 -0
- package/dist/modules/slack/services/set-conversation-topic.service.d.ts +8 -0
- package/dist/modules/slack/services/set-conversation-topic.service.d.ts.map +1 -0
- package/dist/modules/slack/services/set-conversation-topic.service.js +48 -0
- package/dist/modules/slack/services/set-conversation-topic.service.js.map +1 -0
- package/dist/modules/slack/services/update-message.service.d.ts +8 -0
- package/dist/modules/slack/services/update-message.service.d.ts.map +1 -0
- package/dist/modules/slack/services/update-message.service.js +66 -0
- package/dist/modules/slack/services/update-message.service.js.map +1 -0
- package/dist/modules/slack/services/upload-file.service.d.ts +8 -0
- package/dist/modules/slack/services/upload-file.service.d.ts.map +1 -0
- package/dist/modules/slack/services/upload-file.service.js +66 -0
- package/dist/modules/slack/services/upload-file.service.js.map +1 -0
- package/dist/modules/slack/slack-nest.module.d.ts +3 -0
- package/dist/modules/slack/slack-nest.module.d.ts.map +1 -0
- package/dist/modules/slack/slack-nest.module.js +89 -0
- package/dist/modules/slack/slack-nest.module.js.map +1 -0
- package/dist/modules/slack/slack.module.d.ts +3 -0
- package/dist/modules/slack/slack.module.d.ts.map +1 -0
- package/dist/modules/slack/slack.module.js +49 -0
- package/dist/modules/slack/slack.module.js.map +1 -0
- package/dist/modules/slack/triggers/index.d.ts +3 -0
- package/dist/modules/slack/triggers/index.d.ts.map +1 -0
- package/dist/modules/slack/triggers/index.js +8 -0
- package/dist/modules/slack/triggers/index.js.map +1 -0
- package/dist/modules/slack/triggers/message-received.trigger.d.ts +3 -0
- package/dist/modules/slack/triggers/message-received.trigger.d.ts.map +1 -0
- package/dist/modules/slack/triggers/message-received.trigger.js +122 -0
- package/dist/modules/slack/triggers/message-received.trigger.js.map +1 -0
- package/dist/modules/slack/utils/slack-credentials.util.d.ts +4 -0
- package/dist/modules/slack/utils/slack-credentials.util.d.ts.map +1 -0
- package/dist/modules/slack/utils/slack-credentials.util.js +13 -0
- package/dist/modules/slack/utils/slack-credentials.util.js.map +1 -0
- package/dist/workflow.module.d.ts.map +1 -1
- package/dist/workflow.module.js +12 -0
- package/dist/workflow.module.js.map +1 -1
- package/package.json +7 -2
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.GetKycDetailsService = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const capa_1 = require("@venturialstd/capa");
|
|
15
|
+
const capa_credentials_util_1 = require("../utils/capa-credentials.util");
|
|
16
|
+
let GetKycDetailsService = class GetKycDetailsService {
|
|
17
|
+
capaKycService;
|
|
18
|
+
constructor(capaKycService) {
|
|
19
|
+
this.capaKycService = capaKycService;
|
|
20
|
+
}
|
|
21
|
+
async perform(inputs, context) {
|
|
22
|
+
const userId = inputs.userId;
|
|
23
|
+
if (!userId) {
|
|
24
|
+
throw new Error('userId is required');
|
|
25
|
+
}
|
|
26
|
+
const credentials = this.getCredentials(context);
|
|
27
|
+
const kycDetails = await this.capaKycService.getVerificationDetails(credentials, userId);
|
|
28
|
+
return {
|
|
29
|
+
kycDetails,
|
|
30
|
+
verificationSessionId: kycDetails.verificationSessionId,
|
|
31
|
+
clientReferenceId: kycDetails.clientReferenceId,
|
|
32
|
+
createdAt: kycDetails.createdAt,
|
|
33
|
+
aipriseSummary: kycDetails.aipriseSummary,
|
|
34
|
+
faceLivenessInfo: kycDetails.faceLivenessInfo,
|
|
35
|
+
faceMatchInfo: kycDetails.faceMatchInfo,
|
|
36
|
+
fraudInsights: kycDetails.fraudInsights,
|
|
37
|
+
idInfo: kycDetails.idInfo,
|
|
38
|
+
amlInfo: kycDetails.amlInfo,
|
|
39
|
+
media: kycDetails.media,
|
|
40
|
+
clientReferenceData: kycDetails.clientReferenceData,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
getCredentials(context) {
|
|
44
|
+
return (0, capa_credentials_util_1.getCapaConfigFromContext)(context);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
exports.GetKycDetailsService = GetKycDetailsService;
|
|
48
|
+
exports.GetKycDetailsService = GetKycDetailsService = __decorate([
|
|
49
|
+
(0, common_1.Injectable)(),
|
|
50
|
+
__metadata("design:paramtypes", [capa_1.CapaKycService])
|
|
51
|
+
], GetKycDetailsService);
|
|
52
|
+
//# sourceMappingURL=get-kyc-details.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-kyc-details.service.js","sourceRoot":"","sources":["../../../../src/modules/capa/services/get-kyc-details.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAG4B;AAG5B,0EAA0E;AAGnE,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IACF;IAA7B,YAA6B,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;IAAG,CAAC;IAE/D,KAAK,CAAC,OAAO,CACX,MAA+B,EAC/B,OAA8B;QAE9B,MAAM,MAAM,GAAG,MAAM,CAAC,MAAgB,CAAC;QAEvC,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,MAAM,IAAI,KAAK,CAAC,oBAAoB,CAAC,CAAC;QACxC,CAAC;QAED,MAAM,WAAW,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;QAEjD,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,sBAAsB,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;QAEzF,OAAO;YACL,UAAU;YACV,qBAAqB,EAAE,UAAU,CAAC,qBAAqB;YACvD,iBAAiB,EAAE,UAAU,CAAC,iBAAiB;YAC/C,SAAS,EAAE,UAAU,CAAC,SAAS;YAC/B,cAAc,EAAE,UAAU,CAAC,cAAc;YACzC,gBAAgB,EAAE,UAAU,CAAC,gBAAgB;YAC7C,aAAa,EAAE,UAAU,CAAC,aAAa;YACvC,aAAa,EAAE,UAAU,CAAC,aAAa;YACvC,MAAM,EAAE,UAAU,CAAC,MAAM;YACzB,OAAO,EAAE,UAAU,CAAC,OAAO;YAC3B,KAAK,EAAE,UAAU,CAAC,KAAK;YACvB,mBAAmB,EAAE,UAAU,CAAC,mBAAmB;SACpD,CAAC;IACJ,CAAC;IAEO,cAAc,CAAC,OAA8B;QACnD,OAAO,IAAA,gDAAwB,EAAC,OAAO,CAAC,CAAC;IAC3C,CAAC;CACF,CAAA;AApCY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;qCAEkC,qBAAc;GADhD,oBAAoB,CAoChC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CapaTransactionsService } from '@venturialstd/capa';
|
|
2
|
+
import { IWorkflowActionService, WorkflowActionContext } from '../../types';
|
|
3
|
+
export declare class GetMockTestingGuideService implements IWorkflowActionService {
|
|
4
|
+
private readonly capaTransactionsService;
|
|
5
|
+
constructor(capaTransactionsService: CapaTransactionsService);
|
|
6
|
+
perform(inputs: Record<string, unknown>, context: WorkflowActionContext): Promise<Record<string, unknown>>;
|
|
7
|
+
private getCredentials;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=get-mock-testing-guide.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-mock-testing-guide.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/capa/services/get-mock-testing-guide.service.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,uBAAuB,EACxB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAG5E,qBACa,0BAA2B,YAAW,sBAAsB;IAC3D,OAAO,CAAC,QAAQ,CAAC,uBAAuB;gBAAvB,uBAAuB,EAAE,uBAAuB;IAEvE,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;IAUnC,OAAO,CAAC,cAAc;CAGvB"}
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.GetMockTestingGuideService = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const capa_1 = require("@venturialstd/capa");
|
|
15
|
+
const capa_credentials_util_1 = require("../utils/capa-credentials.util");
|
|
16
|
+
let GetMockTestingGuideService = class GetMockTestingGuideService {
|
|
17
|
+
capaTransactionsService;
|
|
18
|
+
constructor(capaTransactionsService) {
|
|
19
|
+
this.capaTransactionsService = capaTransactionsService;
|
|
20
|
+
}
|
|
21
|
+
async perform(inputs, context) {
|
|
22
|
+
const credentials = this.getCredentials(context);
|
|
23
|
+
const guide = await this.capaTransactionsService.getMockTestingGuide(credentials);
|
|
24
|
+
return {
|
|
25
|
+
guide,
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
getCredentials(context) {
|
|
29
|
+
return (0, capa_credentials_util_1.getCapaConfigFromContext)(context);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
exports.GetMockTestingGuideService = GetMockTestingGuideService;
|
|
33
|
+
exports.GetMockTestingGuideService = GetMockTestingGuideService = __decorate([
|
|
34
|
+
(0, common_1.Injectable)(),
|
|
35
|
+
__metadata("design:paramtypes", [capa_1.CapaTransactionsService])
|
|
36
|
+
], GetMockTestingGuideService);
|
|
37
|
+
//# sourceMappingURL=get-mock-testing-guide.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-mock-testing-guide.service.js","sourceRoot":"","sources":["../../../../src/modules/capa/services/get-mock-testing-guide.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAG4B;AAG5B,0EAA0E;AAGnE,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IACR;IAA7B,YAA6B,uBAAgD;QAAhD,4BAAuB,GAAvB,uBAAuB,CAAyB;IAAG,CAAC;IAEjF,KAAK,CAAC,OAAO,CACX,MAA+B,EAC/B,OAA8B;QAE9B,MAAM,WAAW,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;QAEjD,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,uBAAuB,CAAC,mBAAmB,CAAC,WAAW,CAAC,CAAC;QAElF,OAAO;YACL,KAAK;SACN,CAAC;IACJ,CAAC;IAEO,cAAc,CAAC,OAA8B;QACnD,OAAO,IAAA,gDAAwB,EAAC,OAAO,CAAC,CAAC;IAC3C,CAAC;CACF,CAAA;AAnBY,gEAA0B;qCAA1B,0BAA0B;IADtC,IAAA,mBAAU,GAAE;qCAE2C,8BAAuB;GADlE,0BAA0B,CAmBtC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CapaQuotesService } from '@venturialstd/capa';
|
|
2
|
+
import { IWorkflowActionService, WorkflowActionContext } from '../../types';
|
|
3
|
+
export declare class GetQuoteService implements IWorkflowActionService {
|
|
4
|
+
private readonly capaQuotesService;
|
|
5
|
+
constructor(capaQuotesService: CapaQuotesService);
|
|
6
|
+
perform(inputs: Record<string, unknown>, context: WorkflowActionContext): Promise<Record<string, unknown>>;
|
|
7
|
+
private getCredentials;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=get-quote.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-quote.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/capa/services/get-quote.service.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,iBAAiB,EAClB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAG5E,qBACa,eAAgB,YAAW,sBAAsB;IAChD,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAAjB,iBAAiB,EAAE,iBAAiB;IAE3D,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;IA0DnC,OAAO,CAAC,cAAc;CAGvB"}
|
|
@@ -0,0 +1,77 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.GetQuoteService = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const capa_1 = require("@venturialstd/capa");
|
|
15
|
+
const capa_credentials_util_1 = require("../utils/capa-credentials.util");
|
|
16
|
+
let GetQuoteService = class GetQuoteService {
|
|
17
|
+
capaQuotesService;
|
|
18
|
+
constructor(capaQuotesService) {
|
|
19
|
+
this.capaQuotesService = capaQuotesService;
|
|
20
|
+
}
|
|
21
|
+
async perform(inputs, context) {
|
|
22
|
+
const tokenSymbol = inputs.tokenSymbol;
|
|
23
|
+
const transactionType = inputs.transactionType;
|
|
24
|
+
const blockchainSymbol = inputs.blockchainSymbol;
|
|
25
|
+
const fiatCurrency = inputs.fiatCurrency;
|
|
26
|
+
const cryptoAmount = inputs.cryptoAmount;
|
|
27
|
+
const fiatAmount = inputs.fiatAmount;
|
|
28
|
+
const premiumSpread = inputs.premiumSpread;
|
|
29
|
+
if (!tokenSymbol || !transactionType || !blockchainSymbol || !fiatCurrency) {
|
|
30
|
+
throw new Error('tokenSymbol, transactionType, blockchainSymbol, and fiatCurrency are required');
|
|
31
|
+
}
|
|
32
|
+
const validCryptoAmount = cryptoAmount !== undefined && cryptoAmount !== null && cryptoAmount > 0
|
|
33
|
+
? cryptoAmount
|
|
34
|
+
: undefined;
|
|
35
|
+
const validFiatAmount = fiatAmount !== undefined && fiatAmount !== null && fiatAmount > 0
|
|
36
|
+
? fiatAmount
|
|
37
|
+
: undefined;
|
|
38
|
+
if (!validCryptoAmount && !validFiatAmount) {
|
|
39
|
+
throw new Error('Either cryptoAmount or fiatAmount must be provided and greater than 0');
|
|
40
|
+
}
|
|
41
|
+
if (validCryptoAmount && validFiatAmount) {
|
|
42
|
+
throw new Error('cryptoAmount and fiatAmount are mutually exclusive. Provide only one.');
|
|
43
|
+
}
|
|
44
|
+
const credentials = this.getCredentials(context);
|
|
45
|
+
const query = {
|
|
46
|
+
tokenSymbol,
|
|
47
|
+
transactionType,
|
|
48
|
+
blockchainSymbol,
|
|
49
|
+
fiatCurrency,
|
|
50
|
+
...(validCryptoAmount && { cryptoAmount: validCryptoAmount }),
|
|
51
|
+
...(validFiatAmount && { fiatAmount: validFiatAmount }),
|
|
52
|
+
...(premiumSpread !== undefined && premiumSpread !== null && premiumSpread > 0 && { premiumSpread }),
|
|
53
|
+
};
|
|
54
|
+
const quote = await this.capaQuotesService.getQuote(credentials, query);
|
|
55
|
+
return {
|
|
56
|
+
quote,
|
|
57
|
+
transactionType: quote.transactionType,
|
|
58
|
+
fiatAmount: quote.fiatAmount,
|
|
59
|
+
fiatCurrency: quote.fiatCurrency,
|
|
60
|
+
blockchainSymbol: quote.blockchainSymbol,
|
|
61
|
+
tokenSymbol: quote.tokenSymbol,
|
|
62
|
+
cryptoAmount: quote.cryptoAmount,
|
|
63
|
+
rate: quote.rate,
|
|
64
|
+
premiumSpread: quote.premiumSpread || null,
|
|
65
|
+
flow: quote.flow,
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
getCredentials(context) {
|
|
69
|
+
return (0, capa_credentials_util_1.getCapaConfigFromContext)(context);
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
exports.GetQuoteService = GetQuoteService;
|
|
73
|
+
exports.GetQuoteService = GetQuoteService = __decorate([
|
|
74
|
+
(0, common_1.Injectable)(),
|
|
75
|
+
__metadata("design:paramtypes", [capa_1.CapaQuotesService])
|
|
76
|
+
], GetQuoteService);
|
|
77
|
+
//# sourceMappingURL=get-quote.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-quote.service.js","sourceRoot":"","sources":["../../../../src/modules/capa/services/get-quote.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAI4B;AAG5B,0EAA0E;AAGnE,IAAM,eAAe,GAArB,MAAM,eAAe;IACG;IAA7B,YAA6B,iBAAoC;QAApC,sBAAiB,GAAjB,iBAAiB,CAAmB;IAAG,CAAC;IAErE,KAAK,CAAC,OAAO,CACX,MAA+B,EAC/B,OAA8B;QAE9B,MAAM,WAAW,GAAG,MAAM,CAAC,WAAqB,CAAC;QACjD,MAAM,eAAe,GAAG,MAAM,CAAC,eAAwD,CAAC;QACxF,MAAM,gBAAgB,GAAG,MAAM,CAAC,gBAA0B,CAAC;QAC3D,MAAM,YAAY,GAAG,MAAM,CAAC,YAAsB,CAAC;QACnD,MAAM,YAAY,GAAG,MAAM,CAAC,YAAkC,CAAC;QAC/D,MAAM,UAAU,GAAG,MAAM,CAAC,UAAgC,CAAC;QAC3D,MAAM,aAAa,GAAG,MAAM,CAAC,aAAmC,CAAC;QAEjE,IAAI,CAAC,WAAW,IAAI,CAAC,eAAe,IAAI,CAAC,gBAAgB,IAAI,CAAC,YAAY,EAAE,CAAC;YAC3E,MAAM,IAAI,KAAK,CAAC,+EAA+E,CAAC,CAAC;QACnG,CAAC;QAED,MAAM,iBAAiB,GACrB,YAAY,KAAK,SAAS,IAAI,YAAY,KAAK,IAAI,IAAI,YAAY,GAAG,CAAC;YACrE,CAAC,CAAC,YAAY;YACd,CAAC,CAAC,SAAS,CAAC;QAChB,MAAM,eAAe,GACnB,UAAU,KAAK,SAAS,IAAI,UAAU,KAAK,IAAI,IAAI,UAAU,GAAG,CAAC;YAC/D,CAAC,CAAC,UAAU;YACZ,CAAC,CAAC,SAAS,CAAC;QAEhB,IAAI,CAAC,iBAAiB,IAAI,CAAC,eAAe,EAAE,CAAC;YAC3C,MAAM,IAAI,KAAK,CAAC,uEAAuE,CAAC,CAAC;QAC3F,CAAC;QAED,IAAI,iBAAiB,IAAI,eAAe,EAAE,CAAC;YACzC,MAAM,IAAI,KAAK,CAAC,uEAAuE,CAAC,CAAC;QAC3F,CAAC;QAED,MAAM,WAAW,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;QAEjD,MAAM,KAAK,GAAsB;YAC/B,WAAW;YACX,eAAe;YACf,gBAAgB;YAChB,YAAY;YACZ,GAAG,CAAC,iBAAiB,IAAI,EAAE,YAAY,EAAE,iBAAiB,EAAE,CAAC;YAC7D,GAAG,CAAC,eAAe,IAAI,EAAE,UAAU,EAAE,eAAe,EAAE,CAAC;YACvD,GAAG,CAAC,aAAa,KAAK,SAAS,IAAI,aAAa,KAAK,IAAI,IAAI,aAAa,GAAG,CAAC,IAAI,EAAE,aAAa,EAAE,CAAC;SACrG,CAAC;QAEF,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;QAExE,OAAO;YACL,KAAK;YACL,eAAe,EAAE,KAAK,CAAC,eAAe;YACtC,UAAU,EAAE,KAAK,CAAC,UAAU;YAC5B,YAAY,EAAE,KAAK,CAAC,YAAY;YAChC,gBAAgB,EAAE,KAAK,CAAC,gBAAgB;YACxC,WAAW,EAAE,KAAK,CAAC,WAAW;YAC9B,YAAY,EAAE,KAAK,CAAC,YAAY;YAChC,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,aAAa,EAAE,KAAK,CAAC,aAAa,IAAI,IAAI;YAC1C,IAAI,EAAE,KAAK,CAAC,IAAI;SACjB,CAAC;IACJ,CAAC;IAEO,cAAc,CAAC,OAA8B;QACnD,OAAO,IAAA,gDAAwB,EAAC,OAAO,CAAC,CAAC;IAC3C,CAAC;CACF,CAAA;AAnEY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,mBAAU,GAAE;qCAEqC,wBAAiB;GADtD,eAAe,CAmE3B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CapaUsersService } from '@venturialstd/capa';
|
|
2
|
+
import { IWorkflowActionService, WorkflowActionContext } from '../../types';
|
|
3
|
+
export declare class GetUserAgreementsService implements IWorkflowActionService {
|
|
4
|
+
private readonly capaUsersService;
|
|
5
|
+
constructor(capaUsersService: CapaUsersService);
|
|
6
|
+
perform(inputs: Record<string, unknown>, context: WorkflowActionContext): Promise<Record<string, unknown>>;
|
|
7
|
+
private getCredentials;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=get-user-agreements.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-user-agreements.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/capa/services/get-user-agreements.service.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,gBAAgB,EACjB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAG5E,qBACa,wBAAyB,YAAW,sBAAsB;IACzD,OAAO,CAAC,QAAQ,CAAC,gBAAgB;gBAAhB,gBAAgB,EAAE,gBAAgB;IAEzD,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;IAiBnC,OAAO,CAAC,cAAc;CAGvB"}
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.GetUserAgreementsService = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const capa_1 = require("@venturialstd/capa");
|
|
15
|
+
const capa_credentials_util_1 = require("../utils/capa-credentials.util");
|
|
16
|
+
let GetUserAgreementsService = class GetUserAgreementsService {
|
|
17
|
+
capaUsersService;
|
|
18
|
+
constructor(capaUsersService) {
|
|
19
|
+
this.capaUsersService = capaUsersService;
|
|
20
|
+
}
|
|
21
|
+
async perform(inputs, context) {
|
|
22
|
+
const userId = inputs.userId;
|
|
23
|
+
if (!userId) {
|
|
24
|
+
throw new Error('userId is required');
|
|
25
|
+
}
|
|
26
|
+
const credentials = this.getCredentials(context);
|
|
27
|
+
const agreements = await this.capaUsersService.getUserAgreements(credentials, userId);
|
|
28
|
+
return {
|
|
29
|
+
agreements,
|
|
30
|
+
count: agreements.length,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
getCredentials(context) {
|
|
34
|
+
return (0, capa_credentials_util_1.getCapaConfigFromContext)(context);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
exports.GetUserAgreementsService = GetUserAgreementsService;
|
|
38
|
+
exports.GetUserAgreementsService = GetUserAgreementsService = __decorate([
|
|
39
|
+
(0, common_1.Injectable)(),
|
|
40
|
+
__metadata("design:paramtypes", [capa_1.CapaUsersService])
|
|
41
|
+
], GetUserAgreementsService);
|
|
42
|
+
//# sourceMappingURL=get-user-agreements.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-user-agreements.service.js","sourceRoot":"","sources":["../../../../src/modules/capa/services/get-user-agreements.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAG4B;AAG5B,0EAA0E;AAGnE,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IACN;IAA7B,YAA6B,gBAAkC;QAAlC,qBAAgB,GAAhB,gBAAgB,CAAkB;IAAG,CAAC;IAEnE,KAAK,CAAC,OAAO,CACX,MAA+B,EAC/B,OAA8B;QAE9B,MAAM,MAAM,GAAG,MAAM,CAAC,MAAgB,CAAC;QAEvC,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,MAAM,IAAI,KAAK,CAAC,oBAAoB,CAAC,CAAC;QACxC,CAAC;QAED,MAAM,WAAW,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;QAEjD,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;QAEtF,OAAO;YACL,UAAU;YACV,KAAK,EAAE,UAAU,CAAC,MAAM;SACzB,CAAC;IACJ,CAAC;IAEO,cAAc,CAAC,OAA8B;QACnD,OAAO,IAAA,gDAAwB,EAAC,OAAO,CAAC,CAAC;IAC3C,CAAC;CACF,CAAA;AA1BY,4DAAwB;mCAAxB,wBAAwB;IADpC,IAAA,mBAAU,GAAE;qCAEoC,uBAAgB;GADpD,wBAAwB,CA0BpC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export * from './cancel-transaction.service';
|
|
2
|
+
export * from './create-cross-ramp-quote.service';
|
|
3
|
+
export * from './create-cross-ramp.service';
|
|
4
|
+
export * from './create-kyb-verification-link.service';
|
|
5
|
+
export * from './create-kyc-verification-link.service';
|
|
6
|
+
export * from './create-off-ramp.service';
|
|
7
|
+
export * from './create-on-ramp.service';
|
|
8
|
+
export * from './create-quote.service';
|
|
9
|
+
export * from './create-receiver.service';
|
|
10
|
+
export * from './create-user-kyc.service';
|
|
11
|
+
export * from './create-user.service';
|
|
12
|
+
export * from './delete-receiver.service';
|
|
13
|
+
export * from './get-cross-ramp-quote.service';
|
|
14
|
+
export * from './get-kyb-details.service';
|
|
15
|
+
export * from './get-kyc-details.service';
|
|
16
|
+
export * from './get-mock-testing-guide.service';
|
|
17
|
+
export * from './get-quote.service';
|
|
18
|
+
export * from './get-user-agreements.service';
|
|
19
|
+
export * from './list-receivers.service';
|
|
20
|
+
export * from './list-transactions.service';
|
|
21
|
+
export * from './request-document-signature.service';
|
|
22
|
+
export * from './update-webhook-settings.service';
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/capa/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mCAAmC,CAAC;AAClD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kCAAkC,CAAC;AACjD,cAAc,qBAAqB,CAAC;AACpC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sCAAsC,CAAC;AACrD,cAAc,mCAAmC,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
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("./cancel-transaction.service"), exports);
|
|
18
|
+
__exportStar(require("./create-cross-ramp-quote.service"), exports);
|
|
19
|
+
__exportStar(require("./create-cross-ramp.service"), exports);
|
|
20
|
+
__exportStar(require("./create-kyb-verification-link.service"), exports);
|
|
21
|
+
__exportStar(require("./create-kyc-verification-link.service"), exports);
|
|
22
|
+
__exportStar(require("./create-off-ramp.service"), exports);
|
|
23
|
+
__exportStar(require("./create-on-ramp.service"), exports);
|
|
24
|
+
__exportStar(require("./create-quote.service"), exports);
|
|
25
|
+
__exportStar(require("./create-receiver.service"), exports);
|
|
26
|
+
__exportStar(require("./create-user-kyc.service"), exports);
|
|
27
|
+
__exportStar(require("./create-user.service"), exports);
|
|
28
|
+
__exportStar(require("./delete-receiver.service"), exports);
|
|
29
|
+
__exportStar(require("./get-cross-ramp-quote.service"), exports);
|
|
30
|
+
__exportStar(require("./get-kyb-details.service"), exports);
|
|
31
|
+
__exportStar(require("./get-kyc-details.service"), exports);
|
|
32
|
+
__exportStar(require("./get-mock-testing-guide.service"), exports);
|
|
33
|
+
__exportStar(require("./get-quote.service"), exports);
|
|
34
|
+
__exportStar(require("./get-user-agreements.service"), exports);
|
|
35
|
+
__exportStar(require("./list-receivers.service"), exports);
|
|
36
|
+
__exportStar(require("./list-transactions.service"), exports);
|
|
37
|
+
__exportStar(require("./request-document-signature.service"), exports);
|
|
38
|
+
__exportStar(require("./update-webhook-settings.service"), exports);
|
|
39
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/capa/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,oEAAkD;AAClD,8DAA4C;AAC5C,yEAAuD;AACvD,yEAAuD;AACvD,4DAA0C;AAC1C,2DAAyC;AACzC,yDAAuC;AACvC,4DAA0C;AAC1C,4DAA0C;AAC1C,wDAAsC;AACtC,4DAA0C;AAC1C,iEAA+C;AAC/C,4DAA0C;AAC1C,4DAA0C;AAC1C,mEAAiD;AACjD,sDAAoC;AACpC,gEAA8C;AAC9C,2DAAyC;AACzC,8DAA4C;AAC5C,uEAAqD;AACrD,oEAAkD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CapaReceiversService } from '@venturialstd/capa';
|
|
2
|
+
import { IWorkflowActionService, WorkflowActionContext } from '../../types';
|
|
3
|
+
export declare class ListReceiversService implements IWorkflowActionService {
|
|
4
|
+
private readonly capaReceiversService;
|
|
5
|
+
constructor(capaReceiversService: CapaReceiversService);
|
|
6
|
+
perform(inputs: Record<string, unknown>, context: WorkflowActionContext): Promise<Record<string, unknown>>;
|
|
7
|
+
private getCredentials;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=list-receivers.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-receivers.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/capa/services/list-receivers.service.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,oBAAoB,EACrB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAI5E,qBACa,oBAAqB,YAAW,sBAAsB;IACrD,OAAO,CAAC,QAAQ,CAAC,oBAAoB;gBAApB,oBAAoB,EAAE,oBAAoB;IAEjE,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;IAoBnC,OAAO,CAAC,cAAc;CAGvB"}
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ListReceiversService = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const capa_1 = require("@venturialstd/capa");
|
|
15
|
+
const capa_credentials_util_1 = require("../utils/capa-credentials.util");
|
|
16
|
+
const capa_query_util_1 = require("../utils/capa-query.util");
|
|
17
|
+
let ListReceiversService = class ListReceiversService {
|
|
18
|
+
capaReceiversService;
|
|
19
|
+
constructor(capaReceiversService) {
|
|
20
|
+
this.capaReceiversService = capaReceiversService;
|
|
21
|
+
}
|
|
22
|
+
async perform(inputs, context) {
|
|
23
|
+
const userId = inputs.userId;
|
|
24
|
+
const page = inputs.page;
|
|
25
|
+
const credentials = this.getCredentials(context);
|
|
26
|
+
const query = (0, capa_query_util_1.buildQueryObject)({
|
|
27
|
+
userId,
|
|
28
|
+
page,
|
|
29
|
+
});
|
|
30
|
+
const receivers = await this.capaReceiversService.listReceivers(credentials, query);
|
|
31
|
+
return {
|
|
32
|
+
receivers,
|
|
33
|
+
count: receivers.length,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
getCredentials(context) {
|
|
37
|
+
return (0, capa_credentials_util_1.getCapaConfigFromContext)(context);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
exports.ListReceiversService = ListReceiversService;
|
|
41
|
+
exports.ListReceiversService = ListReceiversService = __decorate([
|
|
42
|
+
(0, common_1.Injectable)(),
|
|
43
|
+
__metadata("design:paramtypes", [capa_1.CapaReceiversService])
|
|
44
|
+
], ListReceiversService);
|
|
45
|
+
//# sourceMappingURL=list-receivers.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-receivers.service.js","sourceRoot":"","sources":["../../../../src/modules/capa/services/list-receivers.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAI4B;AAG5B,0EAA0E;AAC1E,8DAA4D;AAGrD,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IACF;IAA7B,YAA6B,oBAA0C;QAA1C,yBAAoB,GAApB,oBAAoB,CAAsB;IAAG,CAAC;IAE3E,KAAK,CAAC,OAAO,CACX,MAA+B,EAC/B,OAA8B;QAE9B,MAAM,MAAM,GAAG,MAAM,CAAC,MAA4B,CAAC;QACnD,MAAM,IAAI,GAAG,MAAM,CAAC,IAA0B,CAAC;QAE/C,MAAM,WAAW,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;QAGjD,MAAM,KAAK,GAAuC,IAAA,kCAAgB,EAAC;YACjE,MAAM;YACN,IAAI;SACL,CAAC,CAAC;QAEH,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,aAAa,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;QAEpF,OAAO;YACL,SAAS;YACT,KAAK,EAAE,SAAS,CAAC,MAAM;SACxB,CAAC;IACJ,CAAC;IAEO,cAAc,CAAC,OAA8B;QACnD,OAAO,IAAA,gDAAwB,EAAC,OAAO,CAAC,CAAC;IAC3C,CAAC;CACF,CAAA;AA7BY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;qCAEwC,2BAAoB;GAD5D,oBAAoB,CA6BhC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CapaTransactionsService } from '@venturialstd/capa';
|
|
2
|
+
import { IWorkflowActionService, WorkflowActionContext } from '../../types';
|
|
3
|
+
export declare class ListTransactionsService implements IWorkflowActionService {
|
|
4
|
+
private readonly capaTransactionsService;
|
|
5
|
+
constructor(capaTransactionsService: CapaTransactionsService);
|
|
6
|
+
perform(inputs: Record<string, unknown>, context: WorkflowActionContext): Promise<Record<string, unknown>>;
|
|
7
|
+
private getCredentials;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=list-transactions.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-transactions.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/capa/services/list-transactions.service.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,uBAAuB,EACxB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAI5E,qBACa,uBAAwB,YAAW,sBAAsB;IACxD,OAAO,CAAC,QAAQ,CAAC,uBAAuB;gBAAvB,uBAAuB,EAAE,uBAAuB;IAEvE,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;IAiCnC,OAAO,CAAC,cAAc;CAGvB"}
|
|
@@ -0,0 +1,58 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ListTransactionsService = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const capa_1 = require("@venturialstd/capa");
|
|
15
|
+
const capa_credentials_util_1 = require("../utils/capa-credentials.util");
|
|
16
|
+
const capa_query_util_1 = require("../utils/capa-query.util");
|
|
17
|
+
let ListTransactionsService = class ListTransactionsService {
|
|
18
|
+
capaTransactionsService;
|
|
19
|
+
constructor(capaTransactionsService) {
|
|
20
|
+
this.capaTransactionsService = capaTransactionsService;
|
|
21
|
+
}
|
|
22
|
+
async perform(inputs, context) {
|
|
23
|
+
const userId = inputs.userId;
|
|
24
|
+
const status = inputs.status;
|
|
25
|
+
const type = inputs.type;
|
|
26
|
+
const startDate = inputs.startDate;
|
|
27
|
+
const endDate = inputs.endDate;
|
|
28
|
+
const page = inputs.page;
|
|
29
|
+
const limit = inputs.limit;
|
|
30
|
+
const credentials = this.getCredentials(context);
|
|
31
|
+
const query = (0, capa_query_util_1.buildQueryObject)({
|
|
32
|
+
userId,
|
|
33
|
+
status: status,
|
|
34
|
+
type,
|
|
35
|
+
startDate,
|
|
36
|
+
endDate,
|
|
37
|
+
page,
|
|
38
|
+
limit,
|
|
39
|
+
});
|
|
40
|
+
const response = await this.capaTransactionsService.listTransactions(credentials, query);
|
|
41
|
+
return {
|
|
42
|
+
response,
|
|
43
|
+
transactions: response.transactions,
|
|
44
|
+
total: response.total,
|
|
45
|
+
page: response.page,
|
|
46
|
+
limit: response.limit,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
getCredentials(context) {
|
|
50
|
+
return (0, capa_credentials_util_1.getCapaConfigFromContext)(context);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
exports.ListTransactionsService = ListTransactionsService;
|
|
54
|
+
exports.ListTransactionsService = ListTransactionsService = __decorate([
|
|
55
|
+
(0, common_1.Injectable)(),
|
|
56
|
+
__metadata("design:paramtypes", [capa_1.CapaTransactionsService])
|
|
57
|
+
], ListTransactionsService);
|
|
58
|
+
//# sourceMappingURL=list-transactions.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-transactions.service.js","sourceRoot":"","sources":["../../../../src/modules/capa/services/list-transactions.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAI4B;AAG5B,0EAA0E;AAC1E,8DAA4D;AAGrD,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IACL;IAA7B,YAA6B,uBAAgD;QAAhD,4BAAuB,GAAvB,uBAAuB,CAAyB;IAAG,CAAC;IAEjF,KAAK,CAAC,OAAO,CACX,MAA+B,EAC/B,OAA8B;QAE9B,MAAM,MAAM,GAAG,MAAM,CAAC,MAA4B,CAAC;QACnD,MAAM,MAAM,GAAG,MAAM,CAAC,MAA4B,CAAC;QACnD,MAAM,IAAI,GAAG,MAAM,CAAC,IAAyD,CAAC;QAC9E,MAAM,SAAS,GAAG,MAAM,CAAC,SAA+B,CAAC;QACzD,MAAM,OAAO,GAAG,MAAM,CAAC,OAA6B,CAAC;QACrD,MAAM,IAAI,GAAG,MAAM,CAAC,IAA0B,CAAC;QAC/C,MAAM,KAAK,GAAG,MAAM,CAAC,KAA2B,CAAC;QAEjD,MAAM,WAAW,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;QAGjD,MAAM,KAAK,GAA0C,IAAA,kCAAgB,EAAC;YACpE,MAAM;YACN,MAAM,EAAE,MAA6C;YACrD,IAAI;YACJ,SAAS;YACT,OAAO;YACP,IAAI;YACJ,KAAK;SACN,CAAC,CAAC;QAEH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;QAEzF,OAAO;YACL,QAAQ;YACR,YAAY,EAAE,QAAQ,CAAC,YAAY;YACnC,KAAK,EAAE,QAAQ,CAAC,KAAK;YACrB,IAAI,EAAE,QAAQ,CAAC,IAAI;YACnB,KAAK,EAAE,QAAQ,CAAC,KAAK;SACtB,CAAC;IACJ,CAAC;IAEO,cAAc,CAAC,OAA8B;QACnD,OAAO,IAAA,gDAAwB,EAAC,OAAO,CAAC,CAAC;IAC3C,CAAC;CACF,CAAA;AA1CY,0DAAuB;kCAAvB,uBAAuB;IADnC,IAAA,mBAAU,GAAE;qCAE2C,8BAAuB;GADlE,uBAAuB,CA0CnC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CapaUsersService } from '@venturialstd/capa';
|
|
2
|
+
import { IWorkflowActionService, WorkflowActionContext } from '../../types';
|
|
3
|
+
export declare class RequestDocumentSignatureService implements IWorkflowActionService {
|
|
4
|
+
private readonly capaUsersService;
|
|
5
|
+
constructor(capaUsersService: CapaUsersService);
|
|
6
|
+
perform(inputs: Record<string, unknown>, context: WorkflowActionContext): Promise<Record<string, unknown>>;
|
|
7
|
+
private getCredentials;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=request-document-signature.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-document-signature.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/capa/services/request-document-signature.service.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,gBAAgB,EACjB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAG5E,qBACa,+BAAgC,YAAW,sBAAsB;IAChE,OAAO,CAAC,QAAQ,CAAC,gBAAgB;gBAAhB,gBAAgB,EAAE,gBAAgB;IAEzD,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;IA0BnC,OAAO,CAAC,cAAc;CAGvB"}
|
|
@@ -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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.RequestDocumentSignatureService = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const capa_1 = require("@venturialstd/capa");
|
|
15
|
+
const capa_credentials_util_1 = require("../utils/capa-credentials.util");
|
|
16
|
+
let RequestDocumentSignatureService = class RequestDocumentSignatureService {
|
|
17
|
+
capaUsersService;
|
|
18
|
+
constructor(capaUsersService) {
|
|
19
|
+
this.capaUsersService = capaUsersService;
|
|
20
|
+
}
|
|
21
|
+
async perform(inputs, context) {
|
|
22
|
+
const userId = inputs.userId;
|
|
23
|
+
const country = inputs.country;
|
|
24
|
+
if (!userId || !country) {
|
|
25
|
+
throw new Error('userId and country are required');
|
|
26
|
+
}
|
|
27
|
+
const credentials = this.getCredentials(context);
|
|
28
|
+
const request = {
|
|
29
|
+
country,
|
|
30
|
+
};
|
|
31
|
+
const response = await this.capaUsersService.requestDocumentSignature(credentials, userId, request);
|
|
32
|
+
return {
|
|
33
|
+
response,
|
|
34
|
+
url: response.url,
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
getCredentials(context) {
|
|
38
|
+
return (0, capa_credentials_util_1.getCapaConfigFromContext)(context);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
exports.RequestDocumentSignatureService = RequestDocumentSignatureService;
|
|
42
|
+
exports.RequestDocumentSignatureService = RequestDocumentSignatureService = __decorate([
|
|
43
|
+
(0, common_1.Injectable)(),
|
|
44
|
+
__metadata("design:paramtypes", [capa_1.CapaUsersService])
|
|
45
|
+
], RequestDocumentSignatureService);
|
|
46
|
+
//# sourceMappingURL=request-document-signature.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-document-signature.service.js","sourceRoot":"","sources":["../../../../src/modules/capa/services/request-document-signature.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAI4B;AAG5B,0EAA0E;AAGnE,IAAM,+BAA+B,GAArC,MAAM,+BAA+B;IACb;IAA7B,YAA6B,gBAAkC;QAAlC,qBAAgB,GAAhB,gBAAgB,CAAkB;IAAG,CAAC;IAEnE,KAAK,CAAC,OAAO,CACX,MAA+B,EAC/B,OAA8B;QAE9B,MAAM,MAAM,GAAG,MAAM,CAAC,MAAgB,CAAC;QACvC,MAAM,OAAO,GAAG,MAAM,CAAC,OAAiB,CAAC;QAEzC,IAAI,CAAC,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC;YACxB,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,MAAM,WAAW,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;QAEjD,MAAM,OAAO,GAA4B;YACvC,OAAO;SACR,CAAC;QAEF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,wBAAwB,CACnE,WAAW,EACX,MAAM,EACN,OAAO,CACR,CAAC;QAEF,OAAO;YACL,QAAQ;YACR,GAAG,EAAE,QAAQ,CAAC,GAAG;SAClB,CAAC;IACJ,CAAC;IAEO,cAAc,CAAC,OAA8B;QACnD,OAAO,IAAA,gDAAwB,EAAC,OAAO,CAAC,CAAC;IAC3C,CAAC;CACF,CAAA;AAnCY,0EAA+B;0CAA/B,+BAA+B;IAD3C,IAAA,mBAAU,GAAE;qCAEoC,uBAAgB;GADpD,+BAA+B,CAmC3C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CapaWebhookSettingsService } from '@venturialstd/capa';
|
|
2
|
+
import { IWorkflowActionService, WorkflowActionContext } from '../../types';
|
|
3
|
+
export declare class UpdateWebhookSettingsService implements IWorkflowActionService {
|
|
4
|
+
private readonly capaWebhookSettingsService;
|
|
5
|
+
constructor(capaWebhookSettingsService: CapaWebhookSettingsService);
|
|
6
|
+
perform(inputs: Record<string, unknown>, context: WorkflowActionContext): Promise<Record<string, unknown>>;
|
|
7
|
+
private getCredentials;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=update-webhook-settings.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-webhook-settings.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/capa/services/update-webhook-settings.service.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,0BAA0B,EAC3B,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAG5E,qBACa,4BAA6B,YAAW,sBAAsB;IAC7D,OAAO,CAAC,QAAQ,CAAC,0BAA0B;gBAA1B,0BAA0B,EAAE,0BAA0B;IAE7E,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;IA0BnC,OAAO,CAAC,cAAc;CAGvB"}
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.UpdateWebhookSettingsService = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const capa_1 = require("@venturialstd/capa");
|
|
15
|
+
const capa_credentials_util_1 = require("../utils/capa-credentials.util");
|
|
16
|
+
let UpdateWebhookSettingsService = class UpdateWebhookSettingsService {
|
|
17
|
+
capaWebhookSettingsService;
|
|
18
|
+
constructor(capaWebhookSettingsService) {
|
|
19
|
+
this.capaWebhookSettingsService = capaWebhookSettingsService;
|
|
20
|
+
}
|
|
21
|
+
async perform(inputs, context) {
|
|
22
|
+
const url = inputs.url;
|
|
23
|
+
if (url === undefined) {
|
|
24
|
+
throw new Error('url is required');
|
|
25
|
+
}
|
|
26
|
+
const credentials = this.getCredentials(context);
|
|
27
|
+
const request = {
|
|
28
|
+
url: url || null,
|
|
29
|
+
};
|
|
30
|
+
const settings = await this.capaWebhookSettingsService.updateWebhookSettings(credentials, request);
|
|
31
|
+
return {
|
|
32
|
+
settings,
|
|
33
|
+
url: settings.url,
|
|
34
|
+
enabled: settings.enabled,
|
|
35
|
+
updatedAt: settings.updatedAt,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
getCredentials(context) {
|
|
39
|
+
return (0, capa_credentials_util_1.getCapaConfigFromContext)(context);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
exports.UpdateWebhookSettingsService = UpdateWebhookSettingsService;
|
|
43
|
+
exports.UpdateWebhookSettingsService = UpdateWebhookSettingsService = __decorate([
|
|
44
|
+
(0, common_1.Injectable)(),
|
|
45
|
+
__metadata("design:paramtypes", [capa_1.CapaWebhookSettingsService])
|
|
46
|
+
], UpdateWebhookSettingsService);
|
|
47
|
+
//# sourceMappingURL=update-webhook-settings.service.js.map
|