diff --git a/components/adtraction/adtraction.app.mjs b/components/adtraction/adtraction.app.mjs index 28241b9fe2269..da711615fa507 100644 --- a/components/adtraction/adtraction.app.mjs +++ b/components/adtraction/adtraction.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/apify/README.md b/components/apify/README.md index 504e7ad8f26b1..a34f3990bac5f 100644 --- a/components/apify/README.md +++ b/components/apify/README.md @@ -6,7 +6,7 @@ The Apify API unleashes the power to automate web scraping, process data, and or **E-commerce Price Monitoring** -- Set up a Pipedream workflow that triggers an Apify actor to scrape product prices from multiple e-commerce sites daily. Store this data in Pipedream's built-in data store and use the Pipedream Email API to send a daily digest of the best deals to subscribers. +- Set up a Pipedream workflow that triggers an Apify Actor to scrape product prices from multiple e-commerce sites daily. Store this data in Pipedream's built-in data store and use the Pipedream Email API to send a daily digest of the best deals to subscribers. **Social Media Sentiment Analysis** diff --git a/components/apify/actions/get-dataset-items/get-dataset-items.mjs b/components/apify/actions/get-dataset-items/get-dataset-items.mjs index f596171377d99..1143996e19e32 100644 --- a/components/apify/actions/get-dataset-items/get-dataset-items.mjs +++ b/components/apify/actions/get-dataset-items/get-dataset-items.mjs @@ -5,7 +5,7 @@ export default { key: "apify-get-dataset-items", name: "Get Dataset Items", description: "Returns data stored in a dataset. [See the documentation](https://docs.apify.com/api/v2/dataset-items-get)", - version: "0.0.2", + version: "0.0.3", type: "action", props: { apify, diff --git a/components/apify/actions/run-actor/run-actor.mjs b/components/apify/actions/run-actor/run-actor.mjs index c4a7c6089c3ce..84febb9e9b6a8 100644 --- a/components/apify/actions/run-actor/run-actor.mjs +++ b/components/apify/actions/run-actor/run-actor.mjs @@ -6,8 +6,8 @@ import { EVENT_TYPES } from "../../common/constants.mjs"; export default { key: "apify-run-actor", name: "Run Actor", - description: "Performs an execution of a selected actor in Apify. [See the documentation](https://docs.apify.com/api/v2#/reference/actors/run-collection/run-actor)", - version: "0.0.3", + description: "Performs an execution of a selected Actor in Apify. [See the documentation](https://docs.apify.com/api/v2#/reference/actors/run-collection/run-actor)", + version: "0.0.4", type: "action", props: { apify, @@ -30,7 +30,7 @@ export default { runAsynchronously: { type: "boolean", label: "Run Asynchronously", - description: "Set to `true` to run the actor asynchronously", + description: "Set to `true` to run the Actor asynchronously", reloadProps: true, }, timeout: { @@ -162,7 +162,7 @@ export default { props.properties = { type: "object", label: "Properties", - description: "Properties to set for this actor", + description: "Properties to set for this Actor", }; } if (this.runAsynchronously) { @@ -241,8 +241,8 @@ export default { }, }); const summary = this.runAsynchronously - ? `Successfully started actor run with ID: ${response.data.id}` - : `Successfully ran actor with ID: ${this.actorId}`; + ? `Successfully started Actor run with ID: ${response.data.id}` + : `Successfully ran Actor with ID: ${this.actorId}`; $.export("$summary", `${summary}`); return response; }, diff --git a/components/apify/actions/run-task-synchronously/run-task-synchronously.mjs b/components/apify/actions/run-task-synchronously/run-task-synchronously.mjs index b2153c9f219f2..b493fb31b1e51 100644 --- a/components/apify/actions/run-task-synchronously/run-task-synchronously.mjs +++ b/components/apify/actions/run-task-synchronously/run-task-synchronously.mjs @@ -4,7 +4,7 @@ export default { key: "apify-run-task-synchronously", name: "Run Task Synchronously", description: "Run a specific task and return its dataset items. [See the documentation](https://docs.apify.com/api/v2/actor-task-run-sync-get-dataset-items-get)", - version: "0.0.2", + version: "0.0.3", type: "action", props: { apify, diff --git a/components/apify/actions/scrape-single-url/scrape-single-url.mjs b/components/apify/actions/scrape-single-url/scrape-single-url.mjs index 2de46d5b103bc..b4c73f0e540cc 100644 --- a/components/apify/actions/scrape-single-url/scrape-single-url.mjs +++ b/components/apify/actions/scrape-single-url/scrape-single-url.mjs @@ -5,7 +5,7 @@ export default { key: "apify-scrape-single-url", name: "Scrape Single URL", description: "Executes a scraper on a specific website and returns its content as text. This action is perfect for extracting content from a single page.", - version: "0.0.3", + version: "0.0.4", type: "action", props: { apify, diff --git a/components/apify/actions/set-key-value-store-record/set-key-value-store-record.mjs b/components/apify/actions/set-key-value-store-record/set-key-value-store-record.mjs index 4586b75d940a3..ddee823cc47b2 100644 --- a/components/apify/actions/set-key-value-store-record/set-key-value-store-record.mjs +++ b/components/apify/actions/set-key-value-store-record/set-key-value-store-record.mjs @@ -5,7 +5,7 @@ export default { key: "apify-set-key-value-store-record", name: "Set Key-Value Store Record", description: "Create or update a record in the key-value store of Apify. [See the documentation](https://docs.apify.com/api/v2#/reference/key-value-stores/record-collection/put-record)", - version: "0.0.3", + version: "0.0.4", type: "action", props: { apify, diff --git a/components/apify/apify.app.mjs b/components/apify/apify.app.mjs index 1a3e46a0df318..ad0fb25c9773d 100644 --- a/components/apify/apify.app.mjs +++ b/components/apify/apify.app.mjs @@ -49,7 +49,7 @@ export default { userActorId: { type: "string", label: "Actor ID", - description: "The ID of the actor to monitor.", + description: "The ID of the Actor to monitor.", async options({ page }) { const { data: { items } } = await this.listUserActors({ params: { @@ -162,6 +162,7 @@ export default { return { "Content-Type": "application/json", "Authorization": `Bearer ${this.$auth.api_token}`, + "x-apify-integration-platform": "pipedream", }; }, _makeRequest({ diff --git a/components/apify/package.json b/components/apify/package.json index 27476a27bb947..6fa6e927daca3 100644 --- a/components/apify/package.json +++ b/components/apify/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/apify", - "version": "0.2.1", + "version": "0.2.2", "description": "Pipedream Apify Components", "main": "apify.app.mjs", "keywords": [ @@ -13,6 +13,7 @@ "access": "public" }, "dependencies": { + "@apify/consts": "^2.41.0", "@pipedream/platform": "^3.0.3" } } diff --git a/components/apify/sources/common/base.mjs b/components/apify/sources/common/base.mjs index b246221f724d8..1362396e2c24e 100644 --- a/components/apify/sources/common/base.mjs +++ b/components/apify/sources/common/base.mjs @@ -1,3 +1,4 @@ +import { WEBHOOK_EVENT_TYPES } from '@apify/consts'; import apify from "../../apify.app.mjs"; export default { @@ -15,10 +16,10 @@ export default { data: { requestUrl: this.http.endpoint, eventTypes: [ - "ACTOR.RUN.SUCCEEDED", - "ACTOR.RUN.FAILED", - "ACTOR.RUN.TIMED_OUT", - "ACTOR.RUN.ABORTED", + WEBHOOK_EVENT_TYPES.ACTOR_RUN_SUCCEEDED, + WEBHOOK_EVENT_TYPES.ACTOR_RUN_FAILED, + WEBHOOK_EVENT_TYPES.ACTOR_RUN_TIMED_OUT, + WEBHOOK_EVENT_TYPES.ACTOR_RUN_ABORTED, ], condition: this.getCondition(), }, @@ -36,7 +37,7 @@ export default { }); this.$emit(body, { - summary: body.eventType === "TEST" + summary: body.eventType === WEBHOOK_EVENT_TYPES.TEST ? "Webhook test has successfully triggered!" : this.getSummary(body), id: body.eventData.actorRunId || `${body.userId}-${body.createAt}`, diff --git a/components/apify/sources/new-finished-actor-run-instant/new-finished-actor-run-instant.mjs b/components/apify/sources/new-finished-actor-run-instant/new-finished-actor-run-instant.mjs index 20426d00d1682..0dbf18cabe02e 100644 --- a/components/apify/sources/new-finished-actor-run-instant/new-finished-actor-run-instant.mjs +++ b/components/apify/sources/new-finished-actor-run-instant/new-finished-actor-run-instant.mjs @@ -5,8 +5,8 @@ export default { ...common, key: "apify-new-finished-actor-run-instant", name: "New Finished Actor Run (Instant)", - description: "Emit new event when a selected actor is run and finishes.", - version: "0.0.3", + description: "Emit new event when a selected Actor is run and finishes.", + version: "0.0.4", type: "source", dedupe: "unique", props: { @@ -27,7 +27,7 @@ export default { }; }, getSummary(body) { - return `A new actor run ${body.eventData.actorRunId} has finished`; + return `A new Actor run ${body.eventData.actorRunId} has finished`; }, }, sampleEmit, diff --git a/components/apify/sources/new-finished-task-run-instant/new-finished-task-run-instant.mjs b/components/apify/sources/new-finished-task-run-instant/new-finished-task-run-instant.mjs index 3d7f8370d7532..3b5950a55d83c 100644 --- a/components/apify/sources/new-finished-task-run-instant/new-finished-task-run-instant.mjs +++ b/components/apify/sources/new-finished-task-run-instant/new-finished-task-run-instant.mjs @@ -6,7 +6,7 @@ export default { key: "apify-new-finished-task-run-instant", name: "New Finished Task Run (Instant)", description: "Emit new event when a selected task is run and finishes.", - version: "0.0.3", + version: "0.0.4", type: "source", dedupe: "unique", props: { diff --git a/components/asters/asters.app.mjs b/components/asters/asters.app.mjs index 7bdd6ef15ec7e..2ceeb25264ab0 100644 --- a/components/asters/asters.app.mjs +++ b/components/asters/asters.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/bitget/bitget.app.mjs b/components/bitget/bitget.app.mjs index 9e8459834a2f1..095dd54f7276b 100644 --- a/components/bitget/bitget.app.mjs +++ b/components/bitget/bitget.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/explorium/explorium.app.mjs b/components/explorium/explorium.app.mjs index 92fbaf841eea0..ec87724048738 100644 --- a/components/explorium/explorium.app.mjs +++ b/components/explorium/explorium.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/joggai/joggai.app.mjs b/components/joggai/joggai.app.mjs index b0055b67aa8d5..0c55a40a7969a 100644 --- a/components/joggai/joggai.app.mjs +++ b/components/joggai/joggai.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/mumble/mumble.app.mjs b/components/mumble/mumble.app.mjs index 544d2c1b11131..9afc033b525e3 100644 --- a/components/mumble/mumble.app.mjs +++ b/components/mumble/mumble.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/neetoform/neetoform.app.mjs b/components/neetoform/neetoform.app.mjs index 9525851515966..10d0addbf84cb 100644 --- a/components/neetoform/neetoform.app.mjs +++ b/components/neetoform/neetoform.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/order_sender/order_sender.app.mjs b/components/order_sender/order_sender.app.mjs index b812cb5e4d1b0..b1b5bd9dde63b 100644 --- a/components/order_sender/order_sender.app.mjs +++ b/components/order_sender/order_sender.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/pinghome/pinghome.app.mjs b/components/pinghome/pinghome.app.mjs index 04819fafe4b06..4ece1bb0825cd 100644 --- a/components/pinghome/pinghome.app.mjs +++ b/components/pinghome/pinghome.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/prepr_graphql/prepr_graphql.app.mjs b/components/prepr_graphql/prepr_graphql.app.mjs index 3a43596fad0db..2d86d22cd9034 100644 --- a/components/prepr_graphql/prepr_graphql.app.mjs +++ b/components/prepr_graphql/prepr_graphql.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/prodatakey/prodatakey.app.mjs b/components/prodatakey/prodatakey.app.mjs index d26f7cf3ec95f..d9fb9257daa1a 100644 --- a/components/prodatakey/prodatakey.app.mjs +++ b/components/prodatakey/prodatakey.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/salesforge/salesforge.app.mjs b/components/salesforge/salesforge.app.mjs index 6c8202862b1e4..0efa5793bc144 100644 --- a/components/salesforge/salesforge.app.mjs +++ b/components/salesforge/salesforge.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/sign_plus/sign_plus.app.mjs b/components/sign_plus/sign_plus.app.mjs index 124038260f41d..e0eed75cc9c2c 100644 --- a/components/sign_plus/sign_plus.app.mjs +++ b/components/sign_plus/sign_plus.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/themarketer/themarketer.app.mjs b/components/themarketer/themarketer.app.mjs index f20f0234bc421..b7463ca4df243 100644 --- a/components/themarketer/themarketer.app.mjs +++ b/components/themarketer/themarketer.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/vincario/vincario.app.mjs b/components/vincario/vincario.app.mjs index a301b9959b6c2..18cca843765a9 100644 --- a/components/vincario/vincario.app.mjs +++ b/components/vincario/vincario.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/zenedu/zenedu.app.mjs b/components/zenedu/zenedu.app.mjs index e937121b971f0..b5a386f348348 100644 --- a/components/zenedu/zenedu.app.mjs +++ b/components/zenedu/zenedu.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 1db63f8363b04..e126bf00908a8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -911,6 +911,9 @@ importers: components/apify: dependencies: + '@apify/consts': + specifier: ^2.41.0 + version: 2.43.0 '@pipedream/platform': specifier: ^3.0.3 version: 3.0.3 @@ -1048,8 +1051,7 @@ importers: specifier: ^1.5.1 version: 1.6.6 - components/asters: - specifiers: {} + components/asters: {} components/astica_ai: dependencies: @@ -11629,8 +11631,7 @@ importers: specifier: ^9.0.1 version: 9.0.1 - components/salesforge: - specifiers: {} + components/salesforge: {} components/saleslens: dependencies: @@ -16141,6 +16142,9 @@ packages: '@apidevtools/swagger-methods@3.0.2': resolution: {integrity: sha512-QAkD5kK2b1WfjDS/UQn/qQkbwF31uqRjPTrsCs5ZG9BQGAkjwvqGFjjPqAuzac/IYzpPtRzjCP1WrTuAIjMrXg==} + '@apify/consts@2.43.0': + resolution: {integrity: sha512-6bhzXeftGa+MrO0XwHLLBJyP9Vc2gZXsbk3d8rcDmiEMJwChA+Qw1WD6BWI9zVazPeXb2OrjzOwfe05f59RD4g==} + '@apimatic/schema@0.6.0': resolution: {integrity: sha512-JgG32LQRLphHRWsn64vIt7wD2m+JH46swM6ZrY7g1rdiGiKV5m+A+TBrJKoUUQRmS14azMgePNZY30NauWqzLg==} engines: {node: '>=10.4.0'} @@ -31199,6 +31203,8 @@ snapshots: '@apidevtools/swagger-methods@3.0.2': {} + '@apify/consts@2.43.0': {} + '@apimatic/schema@0.6.0': dependencies: tslib: 2.8.1