diff --git a/components/alteryx_analytics_cloud/alteryx_analytics_cloud.app.mjs b/components/alteryx_analytics_cloud/alteryx_analytics_cloud.app.mjs index 2766f2df2a174..a247dc6a589d8 100644 --- a/components/alteryx_analytics_cloud/alteryx_analytics_cloud.app.mjs +++ b/components/alteryx_analytics_cloud/alteryx_analytics_cloud.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/apaleo/apaleo.app.mjs b/components/apaleo/apaleo.app.mjs index e7cc9939bef8e..6b13599c37438 100644 --- a/components/apaleo/apaleo.app.mjs +++ b/components/apaleo/apaleo.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/azure_api_for_fhir/azure_api_for_fhir.app.mjs b/components/azure_api_for_fhir/azure_api_for_fhir.app.mjs index 4a792e2d9def7..00ae145ee0848 100644 --- a/components/azure_api_for_fhir/azure_api_for_fhir.app.mjs +++ b/components/azure_api_for_fhir/azure_api_for_fhir.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/battle_net/battle_net.app.mjs b/components/battle_net/battle_net.app.mjs index 2d57219fe3884..f995831a19096 100644 --- a/components/battle_net/battle_net.app.mjs +++ b/components/battle_net/battle_net.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/callminer/callminer.app.mjs b/components/callminer/callminer.app.mjs index 1c29412ce1754..5c908a53a4abc 100644 --- a/components/callminer/callminer.app.mjs +++ b/components/callminer/callminer.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/donorbox/donorbox.app.mjs b/components/donorbox/donorbox.app.mjs index 9b5417627ac3e..ba15e000f53b7 100644 --- a/components/donorbox/donorbox.app.mjs +++ b/components/donorbox/donorbox.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/dovetail/dovetail.app.mjs b/components/dovetail/dovetail.app.mjs index 410637ad37b20..89b7b8e96d448 100644 --- a/components/dovetail/dovetail.app.mjs +++ b/components/dovetail/dovetail.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/epic_games/epic_games.app.mjs b/components/epic_games/epic_games.app.mjs index 59df29d41f4a6..d90bf36c290aa 100644 --- a/components/epic_games/epic_games.app.mjs +++ b/components/epic_games/epic_games.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/exist/exist.app.mjs b/components/exist/exist.app.mjs index ed607e4d88a2c..87f4e0d7a94a1 100644 --- a/components/exist/exist.app.mjs +++ b/components/exist/exist.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/have_i_been_pwned/have_i_been_pwned.app.mjs b/components/have_i_been_pwned/have_i_been_pwned.app.mjs index 00b7335e585e3..b9f8b515d3dc8 100644 --- a/components/have_i_been_pwned/have_i_been_pwned.app.mjs +++ b/components/have_i_been_pwned/have_i_been_pwned.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/honeyhive/honeyhive.app.mjs b/components/honeyhive/honeyhive.app.mjs index 246abe0ec358d..da120cd35b2e2 100644 --- a/components/honeyhive/honeyhive.app.mjs +++ b/components/honeyhive/honeyhive.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/hypeauditor/actions/get-instagram-report/get-instagram-report.mjs b/components/hypeauditor/actions/get-instagram-report/get-instagram-report.mjs index 4c7ccc391bc0f..d113b14e1f6b8 100644 --- a/components/hypeauditor/actions/get-instagram-report/get-instagram-report.mjs +++ b/components/hypeauditor/actions/get-instagram-report/get-instagram-report.mjs @@ -5,7 +5,7 @@ export default { key: "hypeauditor-get-instagram-report", name: "Get Instagram Report", description: "Returns a report about the specified Instagram user. [See the documentation](https://hypeauditor.readme.io/reference/report_instagram#requests)", - version: "0.0.1", + version: "0.0.2", type: "action", props: { app, diff --git a/components/hypeauditor/actions/get-tiktok-report/get-tiktok-report.mjs b/components/hypeauditor/actions/get-tiktok-report/get-tiktok-report.mjs index 30a0ceefbbcb7..fe28793af4966 100644 --- a/components/hypeauditor/actions/get-tiktok-report/get-tiktok-report.mjs +++ b/components/hypeauditor/actions/get-tiktok-report/get-tiktok-report.mjs @@ -1,31 +1,31 @@ -import app from "../../hypeauditor.app.mjs"; - -export default { - key: "hypeauditor-get-tiktok-report", - name: "Get Tiktok Report", - description: "Returns a report about the specified Tiktok channel. [See the documentation](https://hypeauditor.readme.io/reference/get_report_tiktok)", - version: "0.0.1", - type: "action", - props: { - app, - channelUsername: { - propDefinition: [ - app, - "channelUsername", - ], - optional: false, - }, - }, - - async run({ $ }) { - const response = await this.app.getTiktokReport({ - $, - data: { - channel: this.channelUsername, - }, - }); - $.export("$summary", `Successfully sent the request. Report state: '${response.result.report_state}'`); - - return response; - }, -}; +import app from "../../hypeauditor.app.mjs"; + +export default { + key: "hypeauditor-get-tiktok-report", + name: "Get Tiktok Report", + description: "Returns a report about the specified Tiktok channel. [See the documentation](https://hypeauditor.readme.io/reference/get_report_tiktok)", + version: "0.0.2", + type: "action", + props: { + app, + channelUsername: { + propDefinition: [ + app, + "channelUsername", + ], + optional: false, + }, + }, + + async run({ $ }) { + const response = await this.app.getTiktokReport({ + $, + data: { + channel: this.channelUsername, + }, + }); + $.export("$summary", `Successfully sent the request. Report state: '${response.result.report_state}'`); + + return response; + }, +}; diff --git a/components/hypeauditor/actions/get-twitch-report/get-twitch-report.mjs b/components/hypeauditor/actions/get-twitch-report/get-twitch-report.mjs new file mode 100644 index 0000000000000..4707447ce6820 --- /dev/null +++ b/components/hypeauditor/actions/get-twitch-report/get-twitch-report.mjs @@ -0,0 +1,29 @@ +import hypeauditor from "../../hypeauditor.app.mjs"; + +export default { + key: "hypeauditor-get-twitch-report", + name: "Get Twitch Report", + description: "Generates a Twitch report for a specified channel. [See the documentation](https://hypeauditor.readme.io/reference/report_twitch)", + version: "0.0.1", + type: "action", + props: { + hypeauditor, + channel: { + propDefinition: [ + hypeauditor, + "twitchChannel", + ], + }, + }, + async run({ $ }) { + const { + hypeauditor, ...params + } = this; + const response = await hypeauditor.getTwitchReport({ + $, + params, + }); + $.export("$summary", `Successfully fetched Twitch report for channel ${this.channel}`); + return response; + }, +}; diff --git a/components/hypeauditor/actions/get-youtube-report/get-youtube-report.mjs b/components/hypeauditor/actions/get-youtube-report/get-youtube-report.mjs index 65a52af1d6f12..b972858db0ee8 100644 --- a/components/hypeauditor/actions/get-youtube-report/get-youtube-report.mjs +++ b/components/hypeauditor/actions/get-youtube-report/get-youtube-report.mjs @@ -5,7 +5,7 @@ export default { key: "hypeauditor-get-youtube-report", name: "Get Youtube Report", description: "Returns a report about the specified Youtube channel. [See the documentation](https://hypeauditor.readme.io/reference/report_youtube)", - version: "0.0.1", + version: "0.0.2", type: "action", props: { app, diff --git a/components/hypeauditor/hypeauditor.app.mjs b/components/hypeauditor/hypeauditor.app.mjs index cf5b884c70e59..a1c4a6df258be 100644 --- a/components/hypeauditor/hypeauditor.app.mjs +++ b/components/hypeauditor/hypeauditor.app.mjs @@ -4,6 +4,11 @@ export default { type: "app", app: "hypeauditor", propDefinitions: { + twitchChannel: { + type: "string", + label: "Twitch Channel Username", + description: "The Twitch username (e.g. `nasa`) from a Twitch channel URL (in this example, `https://www.twitch.tv/nasa`).", + }, username: { type: "string", label: "Username", @@ -73,5 +78,11 @@ export default { ...args, }); }, + async getTwitchReport(opts = {}) { + return this._makeRequest({ + path: "/auditor.twitch/", + ...opts, + }); + }, }, }; diff --git a/components/hypeauditor/package.json b/components/hypeauditor/package.json index aaf6b8a4ec645..f74084cbdc14b 100644 --- a/components/hypeauditor/package.json +++ b/components/hypeauditor/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/hypeauditor", - "version": "0.1.0", + "version": "0.2.0", "description": "Pipedream HypeAuditor Components", "main": "hypeauditor.app.mjs", "keywords": [ diff --git a/components/hystruct/hystruct.app.mjs b/components/hystruct/hystruct.app.mjs index 07e6cc2b422fa..7528d14b59089 100644 --- a/components/hystruct/hystruct.app.mjs +++ b/components/hystruct/hystruct.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/jumpcloud/jumpcloud.app.mjs b/components/jumpcloud/jumpcloud.app.mjs index 7536de8779262..68043ea783b3c 100644 --- a/components/jumpcloud/jumpcloud.app.mjs +++ b/components/jumpcloud/jumpcloud.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/kiwihr/kiwihr.app.mjs b/components/kiwihr/kiwihr.app.mjs index 02e9ee4ffbf17..e013be46e0b4f 100644 --- a/components/kiwihr/kiwihr.app.mjs +++ b/components/kiwihr/kiwihr.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/logo_dev/logo_dev.app.mjs b/components/logo_dev/logo_dev.app.mjs index 7a47c5cb9bf93..9857304f5ff13 100644 --- a/components/logo_dev/logo_dev.app.mjs +++ b/components/logo_dev/logo_dev.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/mindbody/mindbody.app.mjs b/components/mindbody/mindbody.app.mjs index a115e337d618f..bf4239a0d5323 100644 --- a/components/mindbody/mindbody.app.mjs +++ b/components/mindbody/mindbody.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/ninjaone/ninjaone.app.mjs b/components/ninjaone/ninjaone.app.mjs index 71281f72f8fc3..0945dafedfbfa 100644 --- a/components/ninjaone/ninjaone.app.mjs +++ b/components/ninjaone/ninjaone.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/nmbrs/nmbrs.app.mjs b/components/nmbrs/nmbrs.app.mjs index 69874846b46f3..04e608c1cc6fa 100644 --- a/components/nmbrs/nmbrs.app.mjs +++ b/components/nmbrs/nmbrs.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/odoo/odoo.app.mjs b/components/odoo/odoo.app.mjs index dd0b4ecb391b7..8d77eafc9cdbc 100644 --- a/components/odoo/odoo.app.mjs +++ b/components/odoo/odoo.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/paylocity/paylocity.app.mjs b/components/paylocity/paylocity.app.mjs index a60512329c879..adf5df1613c22 100644 --- a/components/paylocity/paylocity.app.mjs +++ b/components/paylocity/paylocity.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/proposify/proposify.app.mjs b/components/proposify/proposify.app.mjs index c2f8965dd8a48..40756cfa94ffb 100644 --- a/components/proposify/proposify.app.mjs +++ b/components/proposify/proposify.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/verticalresponse/verticalresponse.app.mjs b/components/verticalresponse/verticalresponse.app.mjs index c5ee728540486..e241bf98cc5e1 100644 --- a/components/verticalresponse/verticalresponse.app.mjs +++ b/components/verticalresponse/verticalresponse.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/vonage/vonage.app.mjs b/components/vonage/vonage.app.mjs index 78730af1e4f6a..9fc3d18a42fa2 100644 --- a/components/vonage/vonage.app.mjs +++ b/components/vonage/vonage.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/wolfram_alpha_api/wolfram_alpha_api.app.mjs b/components/wolfram_alpha_api/wolfram_alpha_api.app.mjs index 8592ccc3671c2..7671b73e18ad5 100644 --- a/components/wolfram_alpha_api/wolfram_alpha_api.app.mjs +++ b/components/wolfram_alpha_api/wolfram_alpha_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/yext/yext.app.mjs b/components/yext/yext.app.mjs index ce75bcc0f8ff5..9011467b0fbe4 100644 --- a/components/yext/yext.app.mjs +++ b/components/yext/yext.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 a55bc744e4c8f..33c1996281eff 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -997,8 +997,7 @@ importers: specifier: ^1.5.1 version: 1.6.6 - components/azure_api_for_fhir: - specifiers: {} + components/azure_api_for_fhir: {} components/azure_devops: dependencies: @@ -3416,8 +3415,7 @@ importers: specifier: ^1.5.1 version: 1.6.6 - components/exist: - specifiers: {} + components/exist: {} components/expedy: dependencies: @@ -4746,8 +4744,7 @@ importers: components/hasura: {} - components/have_i_been_pwned: - specifiers: {} + components/have_i_been_pwned: {} components/heartbeat: {} @@ -6612,8 +6609,7 @@ importers: specifier: ^1.5.1 version: 1.6.6 - components/mindbody: - specifiers: {} + components/mindbody: {} components/mindmeister: {} @@ -7668,8 +7664,7 @@ importers: specifier: ^1.5.1 version: 1.6.6 - components/paylocity: - specifiers: {} + components/paylocity: {} components/paymo: dependencies: @@ -12083,8 +12078,7 @@ importers: specifier: ^1.5.1 version: 1.6.6 - components/yext: - specifiers: {} + components/yext: {} components/yoast_seo: {}