diff --git a/components/_1shop_api/_1shop_api.app.mjs b/components/_1shop_api/_1shop_api.app.mjs index f3c1f8ae23b52..9de1db71cf8e8 100644 --- a/components/_1shop_api/_1shop_api.app.mjs +++ b/components/_1shop_api/_1shop_api.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/autocalls/autocalls.app.mjs b/components/autocalls/autocalls.app.mjs index 7e3068b5f6261..7d271a183915f 100644 --- a/components/autocalls/autocalls.app.mjs +++ b/components/autocalls/autocalls.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/babelfy/babelfy.app.mjs b/components/babelfy/babelfy.app.mjs index 43faca709912b..f3824893e7a7e 100644 --- a/components/babelfy/babelfy.app.mjs +++ b/components/babelfy/babelfy.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/bitrated/bitrated.app.mjs b/components/bitrated/bitrated.app.mjs index 9525102c7678e..ad10ebdfb1e45 100644 --- a/components/bitrated/bitrated.app.mjs +++ b/components/bitrated/bitrated.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/crypto_apis_by_alternative/crypto_apis_by_alternative.app.mjs b/components/crypto_apis_by_alternative/crypto_apis_by_alternative.app.mjs index 126fb9a1ad12b..6e94a03de39da 100644 --- a/components/crypto_apis_by_alternative/crypto_apis_by_alternative.app.mjs +++ b/components/crypto_apis_by_alternative/crypto_apis_by_alternative.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/devcycle/devcycle.app.mjs b/components/devcycle/devcycle.app.mjs index a3af10378bcf4..7051efc204335 100644 --- a/components/devcycle/devcycle.app.mjs +++ b/components/devcycle/devcycle.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/dixa/actions/add-message/add-message.mjs b/components/dixa/actions/add-message/add-message.mjs index b86f5b61b511c..2065bdf3217e4 100644 --- a/components/dixa/actions/add-message/add-message.mjs +++ b/components/dixa/actions/add-message/add-message.mjs @@ -4,7 +4,7 @@ export default { key: "dixa-add-message", name: "Add Message to Conversation", description: "Adds a message to an existing conversation. [See the documentation](https://docs.dixa.io/openapi/dixa-api/v1/tag/Conversations/#tag/Conversations/operation/postConversationsConversationidMessages).", - version: "0.0.2", + version: "0.0.3", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/dixa/actions/create-conversation/create-conversation.mjs b/components/dixa/actions/create-conversation/create-conversation.mjs index 8594800c98521..cba054489644d 100644 --- a/components/dixa/actions/create-conversation/create-conversation.mjs +++ b/components/dixa/actions/create-conversation/create-conversation.mjs @@ -4,7 +4,7 @@ export default { key: "dixa-create-conversation", name: "Create Conversation", description: "Creates a new email or contact form-based conversation. [See the documentation](https://docs.dixa.io/openapi/dixa-api/v1/tag/Conversations/#tag/Conversations/operation/postConversations).", - version: "0.0.2", + version: "0.0.3", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/dixa/actions/get-article-translations/get-article-translations.mjs b/components/dixa/actions/get-article-translations/get-article-translations.mjs new file mode 100644 index 0000000000000..cb964d211844a --- /dev/null +++ b/components/dixa/actions/get-article-translations/get-article-translations.mjs @@ -0,0 +1,30 @@ +import dixa from "../../dixa.app.mjs"; + +export default { + key: "dixa-get-article-translations", + name: "Get Article Translations", + description: "Get the translations of an article from Dixa. [See the documentation](https://docs.dixa.io/openapi/dixa-api/beta/tag/Knowledge/#tag/Knowledge/operation/getKnowledgeArticlesArticleidTranslations)", + version: "0.0.1", + type: "action", + annotations: { + destructiveHint: false, + openWorldHint: true, + readOnlyHint: true, + }, + props: { + dixa, + articleId: { + type: "string", + label: "Article ID", + description: "The ID of the article to get translations for", + }, + }, + async run({ $ }) { + const response = await this.dixa.getArticleTranslations({ + articleId: this.articleId, + $, + }); + $.export("$summary", `Successfully retrieved translations for article with ID ${this.articleId}`); + return response; + }, +}; diff --git a/components/dixa/actions/get-article/get-article.mjs b/components/dixa/actions/get-article/get-article.mjs new file mode 100644 index 0000000000000..aa0b988d9db58 --- /dev/null +++ b/components/dixa/actions/get-article/get-article.mjs @@ -0,0 +1,30 @@ +import dixa from "../../dixa.app.mjs"; + +export default { + key: "dixa-get-article", + name: "Get Article", + description: "Get an article from Dixa. [See the documentation](https://docs.dixa.io/openapi/dixa-api/v1/tag/Knowledge/#tag/Knowledge/operation/getKnowledgeArticlesArticleid)", + version: "0.0.1", + type: "action", + annotations: { + destructiveHint: false, + openWorldHint: true, + readOnlyHint: true, + }, + props: { + dixa, + articleId: { + type: "string", + label: "Article ID", + description: "The ID of the article to get", + }, + }, + async run({ $ }) { + const response = await this.dixa.getArticle({ + articleId: this.articleId, + $, + }); + $.export("$summary", `Successfully retrieved article with ID ${this.articleId}`); + return response; + }, +}; diff --git a/components/dixa/actions/set-custom-contact-attributes/set-custom-contact-attributes.mjs b/components/dixa/actions/set-custom-contact-attributes/set-custom-contact-attributes.mjs index 7479f587c5f50..5607d196030c9 100644 --- a/components/dixa/actions/set-custom-contact-attributes/set-custom-contact-attributes.mjs +++ b/components/dixa/actions/set-custom-contact-attributes/set-custom-contact-attributes.mjs @@ -4,7 +4,7 @@ export default { key: "dixa-set-custom-contact-attributes", name: "Set Custom Contact Attributes", description: "Updates custom attributes for a specified user. [See the documentation](https://docs.dixa.io/openapi/dixa-api/v1/tag/Custom-Attributes/#tag/Custom-Attributes/operation/patchEndusersUseridCustom-attributes)", - version: "0.0.2", + version: "0.0.3", annotations: { destructiveHint: true, openWorldHint: true, diff --git a/components/dixa/actions/tag-conversation/tag-conversation.mjs b/components/dixa/actions/tag-conversation/tag-conversation.mjs index 3f9b33eca7095..b8b0ad491731b 100644 --- a/components/dixa/actions/tag-conversation/tag-conversation.mjs +++ b/components/dixa/actions/tag-conversation/tag-conversation.mjs @@ -4,7 +4,7 @@ export default { key: "dixa-tag-conversation", name: "Add Tag to Conversation", description: "Adds a tag to a conversation. [See the documentation](https://docs.dixa.io/openapi/dixa-api/v1/tag/Tags/#tag/Tags/operation/putConversationsConversationidTagsTagid)", - version: "0.0.2", + version: "0.0.3", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/dixa/dixa.app.mjs b/components/dixa/dixa.app.mjs index d637977931ddf..bf06688976b84 100644 --- a/components/dixa/dixa.app.mjs +++ b/components/dixa/dixa.app.mjs @@ -208,5 +208,21 @@ export default { ...opts, }); }, + getArticle({ + articleId, ...opts + }) { + return this._makeRequest({ + path: `/knowledge/articles/${articleId}`, + ...opts, + }); + }, + getArticleTranslations({ + articleId, ...opts + }) { + return this._makeRequest({ + path: `/knowledge/articles/${articleId}/translations`, + ...opts, + }); + }, }, }; diff --git a/components/dixa/package.json b/components/dixa/package.json index f93b0cb8d81cd..efbb7cce9974a 100644 --- a/components/dixa/package.json +++ b/components/dixa/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/dixa", - "version": "0.1.0", + "version": "0.2.0", "description": "Pipedream Dixa Components", "main": "dixa.app.mjs", "keywords": [ diff --git a/components/dixa/sources/conversation-status-changed-instant/conversation-status-changed-instant.mjs b/components/dixa/sources/conversation-status-changed-instant/conversation-status-changed-instant.mjs index 9d4fc452f49d6..cc2a77ed85f16 100644 --- a/components/dixa/sources/conversation-status-changed-instant/conversation-status-changed-instant.mjs +++ b/components/dixa/sources/conversation-status-changed-instant/conversation-status-changed-instant.mjs @@ -6,7 +6,7 @@ export default { key: "dixa-conversation-status-changed-instant", name: "New Conversation Status Changed (Instant)", description: "Emit new events when the status of a conversation changes (e.g., open, closed, or abandoned). [See the documentation](https://docs.dixa.io/openapi/dixa-api/v1/tag/Webhooks/).", - version: "0.0.1", + version: "0.0.2", type: "source", dedupe: "unique", methods: { diff --git a/components/dixa/sources/new-conversation-created-instant/new-conversation-created-instant.mjs b/components/dixa/sources/new-conversation-created-instant/new-conversation-created-instant.mjs index fa6e3bd3da5c2..88a73eb536d39 100644 --- a/components/dixa/sources/new-conversation-created-instant/new-conversation-created-instant.mjs +++ b/components/dixa/sources/new-conversation-created-instant/new-conversation-created-instant.mjs @@ -6,7 +6,7 @@ export default { key: "dixa-new-conversation-created-instant", name: "New Conversation Created (Instant)", description: "Emit new event when a conversation is created in Dixa. [See the documentation](https://docs.dixa.io/openapi/dixa-api/v1/tag/Webhooks/).", - version: "0.0.1", + version: "0.0.2", type: "source", dedupe: "unique", methods: { diff --git a/components/dixa/sources/new-customer-satisfaction-rating-instant/new-customer-satisfaction-rating-instant.mjs b/components/dixa/sources/new-customer-satisfaction-rating-instant/new-customer-satisfaction-rating-instant.mjs index 8cc259dbc8f03..477054ec9b1c7 100644 --- a/components/dixa/sources/new-customer-satisfaction-rating-instant/new-customer-satisfaction-rating-instant.mjs +++ b/components/dixa/sources/new-customer-satisfaction-rating-instant/new-customer-satisfaction-rating-instant.mjs @@ -6,7 +6,7 @@ export default { key: "dixa-new-customer-satisfaction-rating-instant", name: "New Customer Satisfaction Rating (Instant)", description: "Emit new event when a customer submits a satisfaction rating for a conversation. [See the documentation](https://docs.dixa.io/openapi/dixa-api/v1/tag/Webhooks/).", - version: "0.0.1", + version: "0.0.2", type: "source", dedupe: "unique", methods: { diff --git a/components/dixa/sources/new-message-added-instant/new-message-added-instant.mjs b/components/dixa/sources/new-message-added-instant/new-message-added-instant.mjs index f499673b4ab3e..fbf485416410c 100644 --- a/components/dixa/sources/new-message-added-instant/new-message-added-instant.mjs +++ b/components/dixa/sources/new-message-added-instant/new-message-added-instant.mjs @@ -6,7 +6,7 @@ export default { key: "dixa-new-message-added-instant", name: "New Message Added to Conversation (Instant)", description: "Emit new event when a new message is added to a conversation. [See the documentation](https://docs.dixa.io/openapi/dixa-api/v1/tag/Webhooks/).", - version: "0.0.1", + version: "0.0.2", type: "source", dedupe: "unique", methods: { diff --git a/components/dixa/sources/new-tag-added-instant/new-tag-added-instant.mjs b/components/dixa/sources/new-tag-added-instant/new-tag-added-instant.mjs index 4b2c6109c4ef9..25bae9ef1f289 100644 --- a/components/dixa/sources/new-tag-added-instant/new-tag-added-instant.mjs +++ b/components/dixa/sources/new-tag-added-instant/new-tag-added-instant.mjs @@ -6,7 +6,7 @@ export default { key: "dixa-new-tag-added-instant", name: "New Tag Added in Conversation (Instant)", description: "Emit new event when a tag is added to a conversation. [See the documentation](https://docs.dixa.io/openapi/dixa-api/v1/tag/Webhooks/).", - version: "0.0.1", + version: "0.0.2", type: "source", dedupe: "unique", methods: { diff --git a/components/financial_modeling_prep/financial_modeling_prep.app.mjs b/components/financial_modeling_prep/financial_modeling_prep.app.mjs index bf73c1482d9a5..792a4f36e3137 100644 --- a/components/financial_modeling_prep/financial_modeling_prep.app.mjs +++ b/components/financial_modeling_prep/financial_modeling_prep.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/fortnox/fortnox.app.mjs b/components/fortnox/fortnox.app.mjs index 839085921110a..415e7f0cfad74 100644 --- a/components/fortnox/fortnox.app.mjs +++ b/components/fortnox/fortnox.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/ideta/ideta.app.mjs b/components/ideta/ideta.app.mjs index e298792baa865..ef0ad0da07cc3 100644 --- a/components/ideta/ideta.app.mjs +++ b/components/ideta/ideta.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/intelitruth/intelitruth.app.mjs b/components/intelitruth/intelitruth.app.mjs index cddb5407ce95d..845217e88ce72 100644 --- a/components/intelitruth/intelitruth.app.mjs +++ b/components/intelitruth/intelitruth.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/jooble/jooble.app.mjs b/components/jooble/jooble.app.mjs index 957d34b9cc85f..5142e39312dbb 100644 --- a/components/jooble/jooble.app.mjs +++ b/components/jooble/jooble.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/keyzy/keyzy.app.mjs b/components/keyzy/keyzy.app.mjs index 89617248dc103..a2f6a122bfd12 100644 --- a/components/keyzy/keyzy.app.mjs +++ b/components/keyzy/keyzy.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/live_score_api/live_score_api.app.mjs b/components/live_score_api/live_score_api.app.mjs index 57035642b38da..ede1f3f3fa538 100644 --- a/components/live_score_api/live_score_api.app.mjs +++ b/components/live_score_api/live_score_api.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/loginradius/loginradius.app.mjs b/components/loginradius/loginradius.app.mjs index 568bb1efbf021..71ff7fe638b64 100644 --- a/components/loginradius/loginradius.app.mjs +++ b/components/loginradius/loginradius.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/magnetite/magnetite.app.mjs b/components/magnetite/magnetite.app.mjs index ae6f1db17ddc9..e380ecbd396d6 100644 --- a/components/magnetite/magnetite.app.mjs +++ b/components/magnetite/magnetite.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/marcom_robot/marcom_robot.app.mjs b/components/marcom_robot/marcom_robot.app.mjs index 74e6e11e1076c..85c55a25b65b1 100644 --- a/components/marcom_robot/marcom_robot.app.mjs +++ b/components/marcom_robot/marcom_robot.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/moorcheh/moorcheh.app.mjs b/components/moorcheh/moorcheh.app.mjs index 0560c2c6d0f92..b1325141de62b 100644 --- a/components/moorcheh/moorcheh.app.mjs +++ b/components/moorcheh/moorcheh.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/mymemory/mymemory.app.mjs b/components/mymemory/mymemory.app.mjs index 7d5dc31a4b7f6..bfcaf72b1fc12 100644 --- a/components/mymemory/mymemory.app.mjs +++ b/components/mymemory/mymemory.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/netsuite/netsuite.app.mjs b/components/netsuite/netsuite.app.mjs index bd3a60ab83b76..2b9bb9fdf7913 100644 --- a/components/netsuite/netsuite.app.mjs +++ b/components/netsuite/netsuite.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/nmkr/nmkr.app.mjs b/components/nmkr/nmkr.app.mjs index 7b59a975bf976..a2b4f890934a1 100644 --- a/components/nmkr/nmkr.app.mjs +++ b/components/nmkr/nmkr.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/nvoip/nvoip.app.mjs b/components/nvoip/nvoip.app.mjs index b2b05f7e8fa26..6bfafec9022bf 100644 --- a/components/nvoip/nvoip.app.mjs +++ b/components/nvoip/nvoip.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/octagon/octagon.app.mjs b/components/octagon/octagon.app.mjs index eb37cbdb9bf86..1240d8e1b2630 100644 --- a/components/octagon/octagon.app.mjs +++ b/components/octagon/octagon.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/orgo/orgo.app.mjs b/components/orgo/orgo.app.mjs index d349c39c1f362..706e8d1fe23d1 100644 --- a/components/orgo/orgo.app.mjs +++ b/components/orgo/orgo.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/parallel_web_systems/parallel_web_systems.app.mjs b/components/parallel_web_systems/parallel_web_systems.app.mjs index 18bffd09ca6cd..71ab91d0605e3 100644 --- a/components/parallel_web_systems/parallel_web_systems.app.mjs +++ b/components/parallel_web_systems/parallel_web_systems.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/pdf_vector/pdf_vector.app.mjs b/components/pdf_vector/pdf_vector.app.mjs index b74b557f893b0..0af510604d2cf 100644 --- a/components/pdf_vector/pdf_vector.app.mjs +++ b/components/pdf_vector/pdf_vector.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/peliqan/peliqan.app.mjs b/components/peliqan/peliqan.app.mjs index b8f5e3e9bf25e..cdf2f7f4bb141 100644 --- a/components/peliqan/peliqan.app.mjs +++ b/components/peliqan/peliqan.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/pinata/pinata.app.mjs b/components/pinata/pinata.app.mjs index a5d3469537017..781aa7ea5b4d5 100644 --- a/components/pinata/pinata.app.mjs +++ b/components/pinata/pinata.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/qualys/qualys.app.mjs b/components/qualys/qualys.app.mjs index dfade91a7d2ec..ce97d84188e04 100644 --- a/components/qualys/qualys.app.mjs +++ b/components/qualys/qualys.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/stock_news_api/stock_news_api.app.mjs b/components/stock_news_api/stock_news_api.app.mjs index 15c26c340aa58..7a93a1695d7d7 100644 --- a/components/stock_news_api/stock_news_api.app.mjs +++ b/components/stock_news_api/stock_news_api.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/stocknewsapi/stocknewsapi.app.mjs b/components/stocknewsapi/stocknewsapi.app.mjs index d29c7ba200c81..7d3605c616c80 100644 --- a/components/stocknewsapi/stocknewsapi.app.mjs +++ b/components/stocknewsapi/stocknewsapi.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/webspellchecker/webspellchecker.app.mjs b/components/webspellchecker/webspellchecker.app.mjs index da3aeeccfb6d5..2d69f60ec4d54 100644 --- a/components/webspellchecker/webspellchecker.app.mjs +++ b/components/webspellchecker/webspellchecker.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/yext_sandbox/yext_sandbox.app.mjs b/components/yext_sandbox/yext_sandbox.app.mjs index 5a2988be1cdfc..57f197a5d27b6 100644 --- a/components/yext_sandbox/yext_sandbox.app.mjs +++ b/components/yext_sandbox/yext_sandbox.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 89ea257d81eba..d7c3e14b0f74d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -39852,6 +39852,8 @@ snapshots: '@putout/operator-filesystem': 5.0.0(putout@36.13.1(eslint@8.57.1)(typescript@5.6.3)) '@putout/operator-json': 2.2.0 putout: 36.13.1(eslint@8.57.1)(typescript@5.6.3) + transitivePeerDependencies: + - supports-color '@putout/operator-regexp@1.0.0(putout@36.13.1(eslint@8.57.1)(typescript@5.6.3))': dependencies: