@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,139 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateMessageAction = void 0;
|
|
4
|
+
const types_1 = require("../../types");
|
|
5
|
+
const update_message_service_1 = require("../services/update-message.service");
|
|
6
|
+
exports.updateMessageAction = {
|
|
7
|
+
key: 'update-message',
|
|
8
|
+
name: 'Update Message',
|
|
9
|
+
description: 'Update an existing message in a Slack channel',
|
|
10
|
+
category: types_1.NODE_CATEGORY.ACTION,
|
|
11
|
+
icon: '✏️',
|
|
12
|
+
serviceClass: update_message_service_1.UpdateMessageService,
|
|
13
|
+
inputs: [
|
|
14
|
+
{
|
|
15
|
+
id: 'channel',
|
|
16
|
+
name: 'Channel',
|
|
17
|
+
description: 'Channel containing the message to be updated',
|
|
18
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
19
|
+
validation: {
|
|
20
|
+
required: true,
|
|
21
|
+
minLength: 1,
|
|
22
|
+
},
|
|
23
|
+
placeholder: 'C1234567890',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: 'ts',
|
|
27
|
+
name: 'Timestamp',
|
|
28
|
+
description: 'Timestamp of the message to be updated',
|
|
29
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
30
|
+
validation: {
|
|
31
|
+
required: true,
|
|
32
|
+
minLength: 1,
|
|
33
|
+
},
|
|
34
|
+
placeholder: '1234567890.123456',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
id: 'text',
|
|
38
|
+
name: 'Text',
|
|
39
|
+
description: 'New text of the message (required if blocks/attachments not provided)',
|
|
40
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
41
|
+
validation: {
|
|
42
|
+
required: false,
|
|
43
|
+
},
|
|
44
|
+
placeholder: 'Updated message text',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
id: 'blocks',
|
|
48
|
+
name: 'Blocks',
|
|
49
|
+
description: 'A JSON-based array of structured blocks',
|
|
50
|
+
type: types_1.FIELD_TYPE.JSON,
|
|
51
|
+
validation: {
|
|
52
|
+
required: false,
|
|
53
|
+
},
|
|
54
|
+
placeholder: '[{"type": "section", "text": {"type": "mrkdwn", "text": "Updated"}}]',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
id: 'asUser',
|
|
58
|
+
name: 'As User',
|
|
59
|
+
description: 'Pass true to update the message as the authed user',
|
|
60
|
+
type: types_1.FIELD_TYPE.BOOLEAN,
|
|
61
|
+
validation: {
|
|
62
|
+
required: false,
|
|
63
|
+
},
|
|
64
|
+
defaultValue: false,
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
id: 'attachments',
|
|
68
|
+
name: 'Attachments',
|
|
69
|
+
description: 'A JSON-based array of structured attachments',
|
|
70
|
+
type: types_1.FIELD_TYPE.JSON,
|
|
71
|
+
validation: {
|
|
72
|
+
required: false,
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
id: 'linkNames',
|
|
77
|
+
name: 'Link Names',
|
|
78
|
+
description: 'Find and link channel names and usernames',
|
|
79
|
+
type: types_1.FIELD_TYPE.BOOLEAN,
|
|
80
|
+
validation: {
|
|
81
|
+
required: false,
|
|
82
|
+
},
|
|
83
|
+
defaultValue: false,
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
id: 'parse',
|
|
87
|
+
name: 'Parse',
|
|
88
|
+
description: 'Change how messages are treated',
|
|
89
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
90
|
+
validation: {
|
|
91
|
+
required: false,
|
|
92
|
+
enum: ['full', 'none'],
|
|
93
|
+
},
|
|
94
|
+
options: [
|
|
95
|
+
{ label: 'Full', value: 'full' },
|
|
96
|
+
{ label: 'None', value: 'none' },
|
|
97
|
+
],
|
|
98
|
+
},
|
|
99
|
+
],
|
|
100
|
+
outputs: [
|
|
101
|
+
{
|
|
102
|
+
id: 'ok',
|
|
103
|
+
name: 'OK',
|
|
104
|
+
description: 'Whether the operation was successful',
|
|
105
|
+
type: types_1.FIELD_TYPE.BOOLEAN,
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
id: 'channel',
|
|
109
|
+
name: 'Channel',
|
|
110
|
+
description: 'Channel ID',
|
|
111
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
id: 'ts',
|
|
115
|
+
name: 'Timestamp',
|
|
116
|
+
description: 'Message timestamp',
|
|
117
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
id: 'text',
|
|
121
|
+
name: 'Text',
|
|
122
|
+
description: 'Updated message text',
|
|
123
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
id: 'message',
|
|
127
|
+
name: 'Message',
|
|
128
|
+
description: 'Updated message object',
|
|
129
|
+
type: types_1.FIELD_TYPE.OBJECT,
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
id: 'error',
|
|
133
|
+
name: 'Error',
|
|
134
|
+
description: 'Error message if operation failed',
|
|
135
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
136
|
+
},
|
|
137
|
+
],
|
|
138
|
+
};
|
|
139
|
+
//# sourceMappingURL=update-message.action.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-message.action.js","sourceRoot":"","sources":["../../../../src/modules/slack/actions/update-message.action.ts"],"names":[],"mappings":";;;AAAA,uCAKqB;AACrB,+EAA0E;AAE7D,QAAA,mBAAmB,GAA0B;IACxD,GAAG,EAAE,gBAAgB;IACrB,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,+CAA+C;IAC5D,QAAQ,EAAE,qBAAa,CAAC,MAAM;IAC9B,IAAI,EAAE,IAAI;IACV,YAAY,EAAE,6CAA0E;IACxF,MAAM,EAAE;QACN;YACE,EAAE,EAAE,SAAS;YACb,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,8CAA8C;YAC3D,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,IAAI;gBACd,SAAS,EAAE,CAAC;aACb;YACD,WAAW,EAAE,aAAa;SAC3B;QACD;YACE,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,wCAAwC;YACrD,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,IAAI;gBACd,SAAS,EAAE,CAAC;aACb;YACD,WAAW,EAAE,mBAAmB;SACjC;QACD;YACE,EAAE,EAAE,MAAM;YACV,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,uEAAuE;YACpF,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,KAAK;aAChB;YACD,WAAW,EAAE,sBAAsB;SACpC;QACD;YACE,EAAE,EAAE,QAAQ;YACZ,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,yCAAyC;YACtD,IAAI,EAAE,kBAAU,CAAC,IAAI;YACrB,UAAU,EAAE;gBACV,QAAQ,EAAE,KAAK;aAChB;YACD,WAAW,EAAE,sEAAsE;SACpF;QACD;YACE,EAAE,EAAE,QAAQ;YACZ,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,oDAAoD;YACjE,IAAI,EAAE,kBAAU,CAAC,OAAO;YACxB,UAAU,EAAE;gBACV,QAAQ,EAAE,KAAK;aAChB;YACD,YAAY,EAAE,KAAK;SACpB;QACD;YACE,EAAE,EAAE,aAAa;YACjB,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,8CAA8C;YAC3D,IAAI,EAAE,kBAAU,CAAC,IAAI;YACrB,UAAU,EAAE;gBACV,QAAQ,EAAE,KAAK;aAChB;SACF;QACD;YACE,EAAE,EAAE,WAAW;YACf,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,2CAA2C;YACxD,IAAI,EAAE,kBAAU,CAAC,OAAO;YACxB,UAAU,EAAE;gBACV,QAAQ,EAAE,KAAK;aAChB;YACD,YAAY,EAAE,KAAK;SACpB;QACD;YACE,EAAE,EAAE,OAAO;YACX,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;aACvB;YACD,OAAO,EAAE;gBACP,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;gBAChC,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;aACjC;SACF;KACF;IACD,OAAO,EAAE;QACP;YACE,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;YACV,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,kBAAU,CAAC,OAAO;SACzB;QACD;YACE,EAAE,EAAE,SAAS;YACb,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,YAAY;YACzB,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,mBAAmB;YAChC,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,MAAM;YACV,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,SAAS;YACb,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,wBAAwB;YACrC,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,OAAO;YACX,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,mCAAmC;YAChD,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-file.action.d.ts","sourceRoot":"","sources":["../../../../src/modules/slack/actions/upload-file.action.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAGrB,eAAO,MAAM,gBAAgB,EAAE,qBA2G9B,CAAC"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.uploadFileAction = void 0;
|
|
4
|
+
const types_1 = require("../../types");
|
|
5
|
+
const upload_file_service_1 = require("../services/upload-file.service");
|
|
6
|
+
exports.uploadFileAction = {
|
|
7
|
+
key: 'upload-file',
|
|
8
|
+
name: 'Upload File',
|
|
9
|
+
description: 'Upload a file to Slack (⚠️ Deprecated - Use get-upload-url-external + complete-upload-external instead)',
|
|
10
|
+
category: types_1.NODE_CATEGORY.ACTION,
|
|
11
|
+
icon: '📎',
|
|
12
|
+
serviceClass: upload_file_service_1.UploadFileService,
|
|
13
|
+
inputs: [
|
|
14
|
+
{
|
|
15
|
+
id: 'channels',
|
|
16
|
+
name: 'Channels',
|
|
17
|
+
description: 'Comma-separated list of channel names or IDs where the file will be shared',
|
|
18
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
19
|
+
validation: {
|
|
20
|
+
required: false,
|
|
21
|
+
},
|
|
22
|
+
placeholder: 'C1234567890,C0987654321',
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
id: 'content',
|
|
26
|
+
name: 'Content',
|
|
27
|
+
description: 'File contents via a POST variable (required if file not provided)',
|
|
28
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
29
|
+
validation: {
|
|
30
|
+
required: false,
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
id: 'file',
|
|
35
|
+
name: 'File',
|
|
36
|
+
description: 'File contents (required if content not provided)',
|
|
37
|
+
type: types_1.FIELD_TYPE.OBJECT,
|
|
38
|
+
validation: {
|
|
39
|
+
required: false,
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
id: 'filename',
|
|
44
|
+
name: 'Filename',
|
|
45
|
+
description: 'Filename of file',
|
|
46
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
47
|
+
validation: {
|
|
48
|
+
required: false,
|
|
49
|
+
},
|
|
50
|
+
placeholder: 'document.pdf',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
id: 'filetype',
|
|
54
|
+
name: 'File Type',
|
|
55
|
+
description: 'A file type identifier (e.g., "pdf")',
|
|
56
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
57
|
+
validation: {
|
|
58
|
+
required: false,
|
|
59
|
+
},
|
|
60
|
+
placeholder: 'pdf',
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
id: 'initialComment',
|
|
64
|
+
name: 'Initial Comment',
|
|
65
|
+
description: 'The message text introducing the file',
|
|
66
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
67
|
+
validation: {
|
|
68
|
+
required: false,
|
|
69
|
+
},
|
|
70
|
+
placeholder: 'Check out this file',
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
id: 'title',
|
|
74
|
+
name: 'Title',
|
|
75
|
+
description: 'Title of file',
|
|
76
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
77
|
+
validation: {
|
|
78
|
+
required: false,
|
|
79
|
+
},
|
|
80
|
+
placeholder: 'Important Document',
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
id: 'threadTs',
|
|
84
|
+
name: 'Thread Timestamp',
|
|
85
|
+
description: 'Provide another message\'s ts value to upload this file as a reply',
|
|
86
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
87
|
+
validation: {
|
|
88
|
+
required: false,
|
|
89
|
+
},
|
|
90
|
+
placeholder: '1234567890.123456',
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
outputs: [
|
|
94
|
+
{
|
|
95
|
+
id: 'ok',
|
|
96
|
+
name: 'OK',
|
|
97
|
+
description: 'Whether the operation was successful',
|
|
98
|
+
type: types_1.FIELD_TYPE.BOOLEAN,
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
id: 'file',
|
|
102
|
+
name: 'File',
|
|
103
|
+
description: 'File object',
|
|
104
|
+
type: types_1.FIELD_TYPE.OBJECT,
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
id: 'error',
|
|
108
|
+
name: 'Error',
|
|
109
|
+
description: 'Error message if operation failed',
|
|
110
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
111
|
+
},
|
|
112
|
+
],
|
|
113
|
+
};
|
|
114
|
+
//# sourceMappingURL=upload-file.action.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-file.action.js","sourceRoot":"","sources":["../../../../src/modules/slack/actions/upload-file.action.ts"],"names":[],"mappings":";;;AAAA,uCAKqB;AACrB,yEAAoE;AAEvD,QAAA,gBAAgB,GAA0B;IACrD,GAAG,EAAE,aAAa;IAClB,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,yGAAyG;IACtH,QAAQ,EAAE,qBAAa,CAAC,MAAM;IAC9B,IAAI,EAAE,IAAI;IACV,YAAY,EAAE,uCAAuE;IACrF,MAAM,EAAE;QACN;YACE,EAAE,EAAE,UAAU;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,4EAA4E;YACzF,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,KAAK;aAChB;YACD,WAAW,EAAE,yBAAyB;SACvC;QACD;YACE,EAAE,EAAE,SAAS;YACb,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,mEAAmE;YAChF,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,KAAK;aAChB;SACF;QACD;YACE,EAAE,EAAE,MAAM;YACV,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,kDAAkD;YAC/D,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,KAAK;aAChB;SACF;QACD;YACE,EAAE,EAAE,UAAU;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,KAAK;aAChB;YACD,WAAW,EAAE,cAAc;SAC5B;QACD;YACE,EAAE,EAAE,UAAU;YACd,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,KAAK;aAChB;YACD,WAAW,EAAE,KAAK;SACnB;QACD;YACE,EAAE,EAAE,gBAAgB;YACpB,IAAI,EAAE,iBAAiB;YACvB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,KAAK;aAChB;YACD,WAAW,EAAE,qBAAqB;SACnC;QACD;YACE,EAAE,EAAE,OAAO;YACX,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,eAAe;YAC5B,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,KAAK;aAChB;YACD,WAAW,EAAE,oBAAoB;SAClC;QACD;YACE,EAAE,EAAE,UAAU;YACd,IAAI,EAAE,kBAAkB;YACxB,WAAW,EAAE,oEAAoE;YACjF,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,KAAK;aAChB;YACD,WAAW,EAAE,mBAAmB;SACjC;KACF;IACD,OAAO,EAAE;QACP;YACE,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;YACV,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,kBAAU,CAAC,OAAO;SACzB;QACD;YACE,EAAE,EAAE,MAAM;YACV,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,aAAa;YAC1B,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,OAAO;YACX,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,mCAAmC;YAChD,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/slack/auth/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./slack-auth.service"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/slack/auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SlackAuthService as SlackAuthServicePackage } from '@venturialstd/slack';
|
|
2
|
+
import { CredentialAuthResult, IWorkflowCredentialAuthService } from '../../types';
|
|
3
|
+
export declare class SlackAuthService implements IWorkflowCredentialAuthService {
|
|
4
|
+
private readonly slackAuthService;
|
|
5
|
+
constructor(slackAuthService: SlackAuthServicePackage);
|
|
6
|
+
authenticate(credentials: Record<string, unknown>): Promise<CredentialAuthResult>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=slack-auth.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slack-auth.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/slack/auth/slack-auth.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,IAAI,uBAAuB,EAAe,MAAM,qBAAqB,CAAC;AAE/F,OAAO,EAAE,oBAAoB,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAC;AAEnF,qBACa,gBAAiB,YAAW,8BAA8B;IACzD,OAAO,CAAC,QAAQ,CAAC,gBAAgB;gBAAhB,gBAAgB,EAAE,uBAAuB;IAEhE,YAAY,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAwDxF"}
|
|
@@ -0,0 +1,78 @@
|
|
|
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.SlackAuthService = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const slack_1 = require("@venturialstd/slack");
|
|
15
|
+
let SlackAuthService = class SlackAuthService {
|
|
16
|
+
slackAuthService;
|
|
17
|
+
constructor(slackAuthService) {
|
|
18
|
+
this.slackAuthService = slackAuthService;
|
|
19
|
+
}
|
|
20
|
+
async authenticate(credentials) {
|
|
21
|
+
try {
|
|
22
|
+
const botToken = credentials.botToken;
|
|
23
|
+
if (!botToken || botToken.trim().length === 0) {
|
|
24
|
+
return {
|
|
25
|
+
success: false,
|
|
26
|
+
message: 'Bot Token is required',
|
|
27
|
+
error: 'MISSING_BOT_TOKEN',
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
const config = {
|
|
31
|
+
botToken,
|
|
32
|
+
};
|
|
33
|
+
try {
|
|
34
|
+
const result = await this.slackAuthService.test(config, {});
|
|
35
|
+
if (result.ok) {
|
|
36
|
+
return {
|
|
37
|
+
success: true,
|
|
38
|
+
message: `Credentials validated successfully. Connected as ${result.user} (${result.team})`,
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
success: false,
|
|
43
|
+
message: result.error || 'Authentication failed',
|
|
44
|
+
error: result.error || 'AUTH_ERROR',
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
catch (error) {
|
|
48
|
+
const errorMessage = error instanceof Error ? error.message : 'Unknown error';
|
|
49
|
+
const statusCode = error.statusCode;
|
|
50
|
+
if (statusCode === 401 || errorMessage.includes('invalid_auth')) {
|
|
51
|
+
return {
|
|
52
|
+
success: false,
|
|
53
|
+
message: 'Invalid Bot Token',
|
|
54
|
+
error: 'INVALID_BOT_TOKEN',
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
success: false,
|
|
59
|
+
message: `Failed to validate credentials: ${errorMessage}`,
|
|
60
|
+
error: 'VALIDATION_ERROR',
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
catch (error) {
|
|
65
|
+
return {
|
|
66
|
+
success: false,
|
|
67
|
+
message: error instanceof Error ? error.message : 'Unknown error occurred',
|
|
68
|
+
error: 'AUTH_ERROR',
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
exports.SlackAuthService = SlackAuthService;
|
|
74
|
+
exports.SlackAuthService = SlackAuthService = __decorate([
|
|
75
|
+
(0, common_1.Injectable)(),
|
|
76
|
+
__metadata("design:paramtypes", [slack_1.SlackAuthService])
|
|
77
|
+
], SlackAuthService);
|
|
78
|
+
//# sourceMappingURL=slack-auth.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slack-auth.service.js","sourceRoot":"","sources":["../../../../src/modules/slack/auth/slack-auth.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+CAA+F;AAKxF,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IACE;IAA7B,YAA6B,gBAAyC;QAAzC,qBAAgB,GAAhB,gBAAgB,CAAyB;IAAG,CAAC;IAE1E,KAAK,CAAC,YAAY,CAAC,WAAoC;QACrD,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,WAAW,CAAC,QAAkB,CAAC;YAEhD,IAAI,CAAC,QAAQ,IAAI,QAAQ,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAC9C,OAAO;oBACL,OAAO,EAAE,KAAK;oBACd,OAAO,EAAE,uBAAuB;oBAChC,KAAK,EAAE,mBAAmB;iBAC3B,CAAC;YACJ,CAAC;YAED,MAAM,MAAM,GAAgB;gBAC1B,QAAQ;aACT,CAAC;YAEF,IAAI,CAAC;gBACH,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;gBAC5D,IAAI,MAAM,CAAC,EAAE,EAAE,CAAC;oBACd,OAAO;wBACL,OAAO,EAAE,IAAI;wBACb,OAAO,EAAE,oDAAoD,MAAM,CAAC,IAAI,KAAK,MAAM,CAAC,IAAI,GAAG;qBAC5F,CAAC;gBACJ,CAAC;gBAED,OAAO;oBACL,OAAO,EAAE,KAAK;oBACd,OAAO,EAAE,MAAM,CAAC,KAAK,IAAI,uBAAuB;oBAChD,KAAK,EAAE,MAAM,CAAC,KAAK,IAAI,YAAY;iBACpC,CAAC;YACJ,CAAC;YAAC,OAAO,KAAc,EAAE,CAAC;gBACxB,MAAM,YAAY,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,CAAC;gBAC9E,MAAM,UAAU,GAAI,KAAiC,CAAC,UAAU,CAAC;gBAEjE,IAAI,UAAU,KAAK,GAAG,IAAI,YAAY,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC;oBAChE,OAAO;wBACL,OAAO,EAAE,KAAK;wBACd,OAAO,EAAE,mBAAmB;wBAC5B,KAAK,EAAE,mBAAmB;qBAC3B,CAAC;gBACJ,CAAC;gBAED,OAAO;oBACL,OAAO,EAAE,KAAK;oBACd,OAAO,EAAE,mCAAmC,YAAY,EAAE;oBAC1D,KAAK,EAAE,kBAAkB;iBAC1B,CAAC;YACJ,CAAC;QACH,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,KAAK;gBACd,OAAO,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,wBAAwB;gBAC1E,KAAK,EAAE,YAAY;aACpB,CAAC;QACJ,CAAC;IACH,CAAC;CACF,CAAA;AA3DY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,mBAAU,GAAE;qCAEoC,wBAAuB;GAD3D,gBAAgB,CA2D5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../../src/modules/slack/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAc,MAAM,UAAU,CAAC;AAEjE,eAAO,MAAM,gBAAgB,EAAE,yBAAyB,EAcvD,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.slackCredentials = void 0;
|
|
4
|
+
const types_1 = require("../types");
|
|
5
|
+
exports.slackCredentials = [
|
|
6
|
+
{
|
|
7
|
+
id: 'botToken',
|
|
8
|
+
name: 'Bot Token',
|
|
9
|
+
description: 'Slack Bot User OAuth Token for API authentication',
|
|
10
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
11
|
+
validation: {
|
|
12
|
+
required: true,
|
|
13
|
+
minLength: 1,
|
|
14
|
+
},
|
|
15
|
+
placeholder: 'xoxb-your-bot-token',
|
|
16
|
+
sensitive: true,
|
|
17
|
+
required: true,
|
|
18
|
+
},
|
|
19
|
+
];
|
|
20
|
+
//# sourceMappingURL=credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentials.js","sourceRoot":"","sources":["../../../src/modules/slack/credentials.ts"],"names":[],"mappings":";;;AAAA,oCAAiE;AAEpD,QAAA,gBAAgB,GAAgC;IAC3D;QACE,EAAE,EAAE,UAAU;QACd,IAAI,EAAE,WAAW;QACjB,WAAW,EAAE,mDAAmD;QAChE,IAAI,EAAE,kBAAU,CAAC,MAAM;QACvB,UAAU,EAAE;YACV,QAAQ,EAAE,IAAI;YACd,SAAS,EAAE,CAAC;SACb;QACD,WAAW,EAAE,qBAAqB;QAClC,SAAS,EAAE,IAAI;QACf,QAAQ,EAAE,IAAI;KACf;CACF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SlackReactionsService } from '@venturialstd/slack';
|
|
2
|
+
import { IWorkflowActionService, WorkflowActionContext } from '../../types';
|
|
3
|
+
export declare class AddReactionService implements IWorkflowActionService {
|
|
4
|
+
private readonly slackReactionsService;
|
|
5
|
+
constructor(slackReactionsService: SlackReactionsService);
|
|
6
|
+
perform(inputs: Record<string, unknown>, context: WorkflowActionContext): Promise<Record<string, unknown>>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=add-reaction.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-reaction.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/slack/services/add-reaction.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAyB,MAAM,qBAAqB,CAAC;AAEnF,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAG5E,qBACa,kBAAmB,YAAW,sBAAsB;IACnD,OAAO,CAAC,QAAQ,CAAC,qBAAqB;gBAArB,qBAAqB,EAAE,qBAAqB;IAEnE,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;CAgCpC"}
|
|
@@ -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.AddReactionService = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const slack_1 = require("@venturialstd/slack");
|
|
15
|
+
const slack_credentials_util_1 = require("../utils/slack-credentials.util");
|
|
16
|
+
let AddReactionService = class AddReactionService {
|
|
17
|
+
slackReactionsService;
|
|
18
|
+
constructor(slackReactionsService) {
|
|
19
|
+
this.slackReactionsService = slackReactionsService;
|
|
20
|
+
}
|
|
21
|
+
async perform(inputs, context) {
|
|
22
|
+
const channel = inputs.channel;
|
|
23
|
+
const timestamp = inputs.timestamp;
|
|
24
|
+
const name = inputs.name;
|
|
25
|
+
if (!channel) {
|
|
26
|
+
throw new Error('Channel is required');
|
|
27
|
+
}
|
|
28
|
+
if (!timestamp) {
|
|
29
|
+
throw new Error('Message timestamp is required');
|
|
30
|
+
}
|
|
31
|
+
if (!name) {
|
|
32
|
+
throw new Error('Reaction name is required');
|
|
33
|
+
}
|
|
34
|
+
const config = (0, slack_credentials_util_1.getSlackConfigFromContext)(context);
|
|
35
|
+
const args = {
|
|
36
|
+
channel,
|
|
37
|
+
timestamp,
|
|
38
|
+
name,
|
|
39
|
+
};
|
|
40
|
+
const result = await this.slackReactionsService.add(config, args);
|
|
41
|
+
return {
|
|
42
|
+
ok: result.ok,
|
|
43
|
+
error: result.error,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
exports.AddReactionService = AddReactionService;
|
|
48
|
+
exports.AddReactionService = AddReactionService = __decorate([
|
|
49
|
+
(0, common_1.Injectable)(),
|
|
50
|
+
__metadata("design:paramtypes", [slack_1.SlackReactionsService])
|
|
51
|
+
], AddReactionService);
|
|
52
|
+
//# sourceMappingURL=add-reaction.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-reaction.service.js","sourceRoot":"","sources":["../../../../src/modules/slack/services/add-reaction.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+CAAmF;AAGnF,4EAA4E;AAGrE,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IACA;IAA7B,YAA6B,qBAA4C;QAA5C,0BAAqB,GAArB,qBAAqB,CAAuB;IAAG,CAAC;IAE7E,KAAK,CAAC,OAAO,CACX,MAA+B,EAC/B,OAA8B;QAE9B,MAAM,OAAO,GAAG,MAAM,CAAC,OAAiB,CAAC;QACzC,MAAM,SAAS,GAAG,MAAM,CAAC,SAAmB,CAAC;QAC7C,MAAM,IAAI,GAAG,MAAM,CAAC,IAAc,CAAC;QAEnC,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;QACzC,CAAC;QAED,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;QACnD,CAAC;QAED,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;QAC/C,CAAC;QAED,MAAM,MAAM,GAAG,IAAA,kDAAyB,EAAC,OAAO,CAAC,CAAC;QAElD,MAAM,IAAI,GAA0B;YAClC,OAAO;YACP,SAAS;YACT,IAAI;SACL,CAAC;QAEF,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAElE,OAAO;YACL,EAAE,EAAE,MAAM,CAAC,EAAE;YACb,KAAK,EAAE,MAAM,CAAC,KAAK;SACpB,CAAC;IACJ,CAAC;CACF,CAAA;AAtCY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,mBAAU,GAAE;qCAEyC,6BAAqB;GAD9D,kBAAkB,CAsC9B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SlackConversationsService } from '@venturialstd/slack';
|
|
2
|
+
import { IWorkflowActionService, WorkflowActionContext } from '../../types';
|
|
3
|
+
export declare class ArchiveConversationService implements IWorkflowActionService {
|
|
4
|
+
private readonly slackConversationsService;
|
|
5
|
+
constructor(slackConversationsService: SlackConversationsService);
|
|
6
|
+
perform(inputs: Record<string, unknown>, context: WorkflowActionContext): Promise<Record<string, unknown>>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=archive-conversation.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"archive-conversation.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/slack/services/archive-conversation.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAiC,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAE/F,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAG5E,qBACa,0BAA2B,YAAW,sBAAsB;IAC3D,OAAO,CAAC,QAAQ,CAAC,yBAAyB;gBAAzB,yBAAyB,EAAE,yBAAyB;IAE3E,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;CAoBpC"}
|
|
@@ -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.ArchiveConversationService = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const slack_1 = require("@venturialstd/slack");
|
|
15
|
+
const slack_credentials_util_1 = require("../utils/slack-credentials.util");
|
|
16
|
+
let ArchiveConversationService = class ArchiveConversationService {
|
|
17
|
+
slackConversationsService;
|
|
18
|
+
constructor(slackConversationsService) {
|
|
19
|
+
this.slackConversationsService = slackConversationsService;
|
|
20
|
+
}
|
|
21
|
+
async perform(inputs, context) {
|
|
22
|
+
const channel = inputs.channel;
|
|
23
|
+
if (!channel) {
|
|
24
|
+
throw new Error('Channel is required');
|
|
25
|
+
}
|
|
26
|
+
const config = (0, slack_credentials_util_1.getSlackConfigFromContext)(context);
|
|
27
|
+
const args = {
|
|
28
|
+
channel,
|
|
29
|
+
};
|
|
30
|
+
const result = await this.slackConversationsService.archive(config, args);
|
|
31
|
+
return {
|
|
32
|
+
ok: result.ok,
|
|
33
|
+
error: result.error,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
exports.ArchiveConversationService = ArchiveConversationService;
|
|
38
|
+
exports.ArchiveConversationService = ArchiveConversationService = __decorate([
|
|
39
|
+
(0, common_1.Injectable)(),
|
|
40
|
+
__metadata("design:paramtypes", [slack_1.SlackConversationsService])
|
|
41
|
+
], ArchiveConversationService);
|
|
42
|
+
//# sourceMappingURL=archive-conversation.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"archive-conversation.service.js","sourceRoot":"","sources":["../../../../src/modules/slack/services/archive-conversation.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+CAA+F;AAG/F,4EAA4E;AAGrE,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IACR;IAA7B,YAA6B,yBAAoD;QAApD,8BAAyB,GAAzB,yBAAyB,CAA2B;IAAG,CAAC;IAErF,KAAK,CAAC,OAAO,CACX,MAA+B,EAC/B,OAA8B;QAE9B,MAAM,OAAO,GAAG,MAAM,CAAC,OAAiB,CAAC;QAEzC,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;QACzC,CAAC;QAED,MAAM,MAAM,GAAG,IAAA,kDAAyB,EAAC,OAAO,CAAC,CAAC;QAElD,MAAM,IAAI,GAAkC;YAC1C,OAAO;SACR,CAAC;QAEF,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAE1E,OAAO;YACL,EAAE,EAAE,MAAM,CAAC,EAAE;YACb,KAAK,EAAE,MAAM,CAAC,KAAK;SACpB,CAAC;IACJ,CAAC;CACF,CAAA;AA1BY,gEAA0B;qCAA1B,0BAA0B;IADtC,IAAA,mBAAU,GAAE;qCAE6C,iCAAyB;GADtE,0BAA0B,CA0BtC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SlackFilesService } from '@venturialstd/slack';
|
|
2
|
+
import { IWorkflowActionService, WorkflowActionContext } from '../../types';
|
|
3
|
+
export declare class CompleteUploadExternalService implements IWorkflowActionService {
|
|
4
|
+
private readonly slackFilesService;
|
|
5
|
+
constructor(slackFilesService: SlackFilesService);
|
|
6
|
+
perform(inputs: Record<string, unknown>, context: WorkflowActionContext): Promise<Record<string, unknown>>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=complete-upload-external.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"complete-upload-external.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/slack/services/complete-upload-external.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAwC,MAAM,qBAAqB,CAAC;AAE9F,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAG5E,qBACa,6BAA8B,YAAW,sBAAsB;IAC9D,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;CA2BpC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
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.CompleteUploadExternalService = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const slack_1 = require("@venturialstd/slack");
|
|
15
|
+
const slack_credentials_util_1 = require("../utils/slack-credentials.util");
|
|
16
|
+
let CompleteUploadExternalService = class CompleteUploadExternalService {
|
|
17
|
+
slackFilesService;
|
|
18
|
+
constructor(slackFilesService) {
|
|
19
|
+
this.slackFilesService = slackFilesService;
|
|
20
|
+
}
|
|
21
|
+
async perform(inputs, context) {
|
|
22
|
+
const files = inputs.files;
|
|
23
|
+
const channelId = inputs.channelId;
|
|
24
|
+
const initialComment = inputs.initialComment;
|
|
25
|
+
const threadTs = inputs.threadTs;
|
|
26
|
+
if (!files || !Array.isArray(files) || files.length === 0) {
|
|
27
|
+
throw new Error('Files array is required and must not be empty');
|
|
28
|
+
}
|
|
29
|
+
const config = (0, slack_credentials_util_1.getSlackConfigFromContext)(context);
|
|
30
|
+
const args = {
|
|
31
|
+
files: files,
|
|
32
|
+
...(channelId && { channel_id: channelId }),
|
|
33
|
+
...(initialComment && { initial_comment: initialComment }),
|
|
34
|
+
...(threadTs && { thread_ts: threadTs }),
|
|
35
|
+
};
|
|
36
|
+
const result = await this.slackFilesService.completeUploadExternal(config, args);
|
|
37
|
+
return {
|
|
38
|
+
ok: result.ok,
|
|
39
|
+
files: result.files,
|
|
40
|
+
error: result.error,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
exports.CompleteUploadExternalService = CompleteUploadExternalService;
|
|
45
|
+
exports.CompleteUploadExternalService = CompleteUploadExternalService = __decorate([
|
|
46
|
+
(0, common_1.Injectable)(),
|
|
47
|
+
__metadata("design:paramtypes", [slack_1.SlackFilesService])
|
|
48
|
+
], CompleteUploadExternalService);
|
|
49
|
+
//# sourceMappingURL=complete-upload-external.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"complete-upload-external.service.js","sourceRoot":"","sources":["../../../../src/modules/slack/services/complete-upload-external.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+CAA8F;AAG9F,4EAA4E;AAGrE,IAAM,6BAA6B,GAAnC,MAAM,6BAA6B;IACX;IAA7B,YAA6B,iBAAoC;QAApC,sBAAiB,GAAjB,iBAAiB,CAAmB;IAAG,CAAC;IAErE,KAAK,CAAC,OAAO,CACX,MAA+B,EAC/B,OAA8B;QAE9B,MAAM,KAAK,GAAG,MAAM,CAAC,KAA8C,CAAC;QACpE,MAAM,SAAS,GAAG,MAAM,CAAC,SAA+B,CAAC;QACzD,MAAM,cAAc,GAAG,MAAM,CAAC,cAAoC,CAAC;QACnE,MAAM,QAAQ,GAAG,MAAM,CAAC,QAA8B,CAAC;QAEvD,IAAI,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC1D,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;QACnE,CAAC;QAED,MAAM,MAAM,GAAG,IAAA,kDAAyB,EAAC,OAAO,CAAC,CAAC;QAElD,MAAM,IAAI,GAAyC;YACjD,KAAK,EAAE,KAAY;YACnB,GAAG,CAAC,SAAS,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC;YAC3C,GAAG,CAAC,cAAc,IAAI,EAAE,eAAe,EAAE,cAAc,EAAE,CAAC;YAC1D,GAAG,CAAC,QAAQ,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC;SACD,CAAC;QAE1C,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,sBAAsB,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAEjF,OAAO;YACL,EAAE,EAAE,MAAM,CAAC,EAAE;YACb,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,KAAK,EAAE,MAAM,CAAC,KAAK;SACpB,CAAC;IACJ,CAAC;CACF,CAAA;AAjCY,sEAA6B;wCAA7B,6BAA6B;IADzC,IAAA,mBAAU,GAAE;qCAEqC,yBAAiB;GADtD,6BAA6B,CAiCzC"}
|