From a5cbc9007a3320831ca55d50c37d19e36041629c Mon Sep 17 00:00:00 2001 From: Michelle Bergeron Date: Thu, 18 Dec 2025 11:59:56 -0500 Subject: [PATCH 1/2] new actions, updates --- .../get-dataset-items/get-dataset-items.mjs | 2 +- .../actions/get-kvs-record/get-kvs-record.mjs | 22 +++++++++++++++++++ .../actions/run-actor/run-actor.mjs | 2 +- .../run-task-synchronously.mjs | 2 +- .../apify_oauth/actions/run-task/run-task.mjs | 22 +++++++++++++++++++ .../scrape-single-url/scrape-single-url.mjs | 2 +- .../set-key-value-store-record.mjs | 2 +- components/apify_oauth/apify_oauth.app.mjs | 5 ++++- components/apify_oauth/package.json | 4 ++-- .../new-finished-actor-run-instant.mjs | 2 +- .../new-finished-task-run-instant.mjs | 2 +- 11 files changed, 57 insertions(+), 10 deletions(-) create mode 100644 components/apify_oauth/actions/get-kvs-record/get-kvs-record.mjs create mode 100644 components/apify_oauth/actions/run-task/run-task.mjs diff --git a/components/apify_oauth/actions/get-dataset-items/get-dataset-items.mjs b/components/apify_oauth/actions/get-dataset-items/get-dataset-items.mjs index 1f977dd20e280..dc35879131a5a 100644 --- a/components/apify_oauth/actions/get-dataset-items/get-dataset-items.mjs +++ b/components/apify_oauth/actions/get-dataset-items/get-dataset-items.mjs @@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, app); export default { ...others, key: "apify_oauth-get-dataset-items", - version: "0.0.2", + version: "0.0.3", name, description, type, diff --git a/components/apify_oauth/actions/get-kvs-record/get-kvs-record.mjs b/components/apify_oauth/actions/get-kvs-record/get-kvs-record.mjs new file mode 100644 index 0000000000000..03e5f7c855d7d --- /dev/null +++ b/components/apify_oauth/actions/get-kvs-record/get-kvs-record.mjs @@ -0,0 +1,22 @@ +import app from "../../apify_oauth.app.mjs"; +import common from "@pipedream/apify/actions/get-kvs-record/get-kvs-record.mjs"; + +import { adjustPropDefinitions } from "../../common/utils.mjs"; + +const { + name, description, type, ...others +} = common; +const props = adjustPropDefinitions(others.props, app); + +export default { + ...others, + key: "apify_oauth-get-kvs-record", + version: "0.0.1", + name, + description, + type, + props: { + apify: app, + ...props, + }, +}; diff --git a/components/apify_oauth/actions/run-actor/run-actor.mjs b/components/apify_oauth/actions/run-actor/run-actor.mjs index 9c9084efa8621..15ff02ef18c55 100644 --- a/components/apify_oauth/actions/run-actor/run-actor.mjs +++ b/components/apify_oauth/actions/run-actor/run-actor.mjs @@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, app); export default { ...others, key: "apify_oauth-run-actor", - version: "0.0.2", + version: "0.0.3", name, description, type, diff --git a/components/apify_oauth/actions/run-task-synchronously/run-task-synchronously.mjs b/components/apify_oauth/actions/run-task-synchronously/run-task-synchronously.mjs index fd55b0049c612..8527032280951 100644 --- a/components/apify_oauth/actions/run-task-synchronously/run-task-synchronously.mjs +++ b/components/apify_oauth/actions/run-task-synchronously/run-task-synchronously.mjs @@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, app); export default { ...others, key: "apify_oauth-run-task-synchronously", - version: "0.0.2", + version: "0.0.3", name, description, type, diff --git a/components/apify_oauth/actions/run-task/run-task.mjs b/components/apify_oauth/actions/run-task/run-task.mjs new file mode 100644 index 0000000000000..00169faa8e7cd --- /dev/null +++ b/components/apify_oauth/actions/run-task/run-task.mjs @@ -0,0 +1,22 @@ +import app from "../../apify_oauth.app.mjs"; +import common from "@pipedream/apify/actions/run-task/run-task.mjs"; + +import { adjustPropDefinitions } from "../../common/utils.mjs"; + +const { + name, description, type, ...others +} = common; +const props = adjustPropDefinitions(others.props, app); + +export default { + ...others, + key: "apify_oauth-run-task", + version: "0.0.1", + name, + description, + type, + props: { + apify: app, + ...props, + }, +}; diff --git a/components/apify_oauth/actions/scrape-single-url/scrape-single-url.mjs b/components/apify_oauth/actions/scrape-single-url/scrape-single-url.mjs index cc45105f7036f..b507c5df850a6 100644 --- a/components/apify_oauth/actions/scrape-single-url/scrape-single-url.mjs +++ b/components/apify_oauth/actions/scrape-single-url/scrape-single-url.mjs @@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, app); export default { ...others, key: "apify_oauth-scrape-single-url", - version: "0.0.2", + version: "0.0.3", name, description, type, diff --git a/components/apify_oauth/actions/set-key-value-store-record/set-key-value-store-record.mjs b/components/apify_oauth/actions/set-key-value-store-record/set-key-value-store-record.mjs index 933f43d549006..f2d81e197b64a 100644 --- a/components/apify_oauth/actions/set-key-value-store-record/set-key-value-store-record.mjs +++ b/components/apify_oauth/actions/set-key-value-store-record/set-key-value-store-record.mjs @@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, app); export default { ...others, key: "apify_oauth-set-key-value-store-record", - version: "0.0.2", + version: "0.0.3", name, description, type, diff --git a/components/apify_oauth/apify_oauth.app.mjs b/components/apify_oauth/apify_oauth.app.mjs index 7cd7cf850f38d..a3b2f55f5a3b0 100644 --- a/components/apify_oauth/apify_oauth.app.mjs +++ b/components/apify_oauth/apify_oauth.app.mjs @@ -9,9 +9,12 @@ export default { }, methods: { ...common.methods, + getAuthToken() { + return this.$auth.oauth_access_token; + }, _client() { return new ApifyClient({ - token: this.$auth.oauth_access_token, + token: this.getAuthToken(), requestInterceptors: [ (config) => ({ ...config, diff --git a/components/apify_oauth/package.json b/components/apify_oauth/package.json index 19408524d6456..cd2e8191c48e8 100644 --- a/components/apify_oauth/package.json +++ b/components/apify_oauth/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/apify_oauth", - "version": "0.1.1", + "version": "0.2.0", "description": "Pipedream Apify (OAuth) Components", "main": "apify_oauth.app.mjs", "keywords": [ @@ -13,7 +13,7 @@ "access": "public" }, "dependencies": { - "@pipedream/apify": "^0.3.1", + "@pipedream/apify": "^0.4.0", "apify-client": "^2.17.0" } } diff --git a/components/apify_oauth/sources/new-finished-actor-run-instant/new-finished-actor-run-instant.mjs b/components/apify_oauth/sources/new-finished-actor-run-instant/new-finished-actor-run-instant.mjs index 63c5a3172230b..8d0ca767c2f7e 100644 --- a/components/apify_oauth/sources/new-finished-actor-run-instant/new-finished-actor-run-instant.mjs +++ b/components/apify_oauth/sources/new-finished-actor-run-instant/new-finished-actor-run-instant.mjs @@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, app); export default { ...others, key: "apify_oauth-new-finished-actor-run-instant", - version: "0.0.2", + version: "0.0.3", name, description, type, diff --git a/components/apify_oauth/sources/new-finished-task-run-instant/new-finished-task-run-instant.mjs b/components/apify_oauth/sources/new-finished-task-run-instant/new-finished-task-run-instant.mjs index 9ee6613386a3d..ffc947e8f1a1c 100644 --- a/components/apify_oauth/sources/new-finished-task-run-instant/new-finished-task-run-instant.mjs +++ b/components/apify_oauth/sources/new-finished-task-run-instant/new-finished-task-run-instant.mjs @@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, app); export default { ...others, key: "apify_oauth-new-finished-task-run-instant", - version: "0.0.2", + version: "0.0.3", name, description, type, From b8f9d2aae0a0131485ba5264243cf09115ba056e Mon Sep 17 00:00:00 2001 From: Michelle Bergeron Date: Thu, 18 Dec 2025 12:00:37 -0500 Subject: [PATCH 2/2] pnpm-lock.yaml --- pnpm-lock.yaml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 666c3870d1b12..1c8eea45ad5b7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1059,8 +1059,8 @@ importers: components/apify_oauth: dependencies: '@pipedream/apify': - specifier: ^0.3.1 - version: 0.3.1 + specifier: ^0.4.0 + version: 0.4.0 apify-client: specifier: ^2.17.0 version: 2.19.0 @@ -2168,8 +2168,7 @@ importers: specifier: ^1.6.8 version: 1.6.8 - components/browser_use: - specifiers: {} + components/browser_use: {} components/browseract: {} @@ -20935,8 +20934,8 @@ packages: '@pinojs/redact@0.4.0': resolution: {integrity: sha512-k2ENnmBugE/rzQfEcdWHcCY+/FM3VLzH9cYEsbdsoqrvzAKRhUZeRNhAZvB8OitQJ1TBed3yqWtdjzS6wJKBwg==} - '@pipedream/apify@0.3.1': - resolution: {integrity: sha512-9PQ8Vypl5EttSEQ9NEEDYzEHmDIdhv0A2kwXSU+3efYC9BnXr1QFuFQiQDT9bJelA6ue5K7jp+zX8s15l93mow==} + '@pipedream/apify@0.4.0': + resolution: {integrity: sha512-eImB63aWX9D9OJ07yRwHlErmWR7a64+c5xq2JFdYTUCA3t8mIpoK3Nb9jCesI9TtHCJB6r+HRrmeHDGqO/pkbQ==} '@pipedream/aws@1.1.1': resolution: {integrity: sha512-BsvH3csJmS6Kd18frdlu435yy7C/wF2CIE3JKc5ysenE2zKbMFrbzGwyKjbcHJJUHLIyduvNdtvSVqOSraMecA==} @@ -31830,17 +31829,17 @@ packages: superagent@3.8.1: resolution: {integrity: sha512-VMBFLYgFuRdfeNQSMLbxGSLfmXL/xc+OO+BZp41Za/NRDBet/BNbkRJrYzCUu0u4GU0i/ml2dtT8b9qgkw9z6Q==} engines: {node: '>= 4.0'} - deprecated: Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See https://github.com/ladjs/superagent/pull/1800 for insight. This project is supported and maintained by the team at Forward Email @ https://forwardemail.net + deprecated: Please upgrade to superagent v10.2.2+, see release notes at https://github.com/forwardemail/superagent/releases/tag/v10.2.2 - maintenance is supported by Forward Email @ https://forwardemail.net superagent@4.1.0: resolution: {integrity: sha512-FT3QLMasz0YyCd4uIi5HNe+3t/onxMyEho7C3PSqmti3Twgy2rXT4fmkTz6wRL6bTF4uzPcfkUCa8u4JWHw8Ag==} engines: {node: '>= 6.0'} - deprecated: Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See https://github.com/ladjs/superagent/pull/1800 for insight. This project is supported and maintained by the team at Forward Email @ https://forwardemail.net + deprecated: Please upgrade to superagent v10.2.2+, see release notes at https://github.com/forwardemail/superagent/releases/tag/v10.2.2 - maintenance is supported by Forward Email @ https://forwardemail.net superagent@5.3.1: resolution: {integrity: sha512-wjJ/MoTid2/RuGCOFtlacyGNxN9QLMgcpYLDQlWFIhhdJ93kNscFonGvrpAHSCVjRVj++DGCglocF7Aej1KHvQ==} engines: {node: '>= 7.0.0'} - deprecated: Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See https://github.com/ladjs/superagent/pull/1800 for insight. This project is supported and maintained by the team at Forward Email @ https://forwardemail.net + deprecated: Please upgrade to superagent v10.2.2+, see release notes at https://github.com/forwardemail/superagent/releases/tag/v10.2.2 - maintenance is supported by Forward Email @ https://forwardemail.net supports-color@10.2.2: resolution: {integrity: sha512-SS+jx45GF1QjgEXQx4NJZV9ImqmO2NPz5FNsIHrsDjh2YsHnawpan7SNQ1o8NuhrbHZy9AZhIoCUiCeaW/C80g==} @@ -38666,7 +38665,7 @@ snapshots: '@pinojs/redact@0.4.0': {} - '@pipedream/apify@0.3.1': + '@pipedream/apify@0.4.0': dependencies: '@apify/consts': 2.47.0 '@pipedream/platform': 3.1.1 @@ -39531,7 +39530,6 @@ snapshots: transitivePeerDependencies: - rolldown - rollup - - supports-color '@putout/operator-parens@2.0.0(rolldown@1.0.0-beta.9)(rollup@4.53.2)': dependencies: