From b5f23390a56118039b173d0630bbf4e4ce79bfff Mon Sep 17 00:00:00 2001 From: Muhammad Usama Date: Fri, 27 Dec 2024 10:04:12 +0000 Subject: [PATCH 1/8] update in url --- components/remote_retrieval/remote_retrieval.app.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/remote_retrieval/remote_retrieval.app.mjs b/components/remote_retrieval/remote_retrieval.app.mjs index aa16fc59bca2c..b51874ed69fca 100644 --- a/components/remote_retrieval/remote_retrieval.app.mjs +++ b/components/remote_retrieval/remote_retrieval.app.mjs @@ -132,7 +132,8 @@ export default { }, methods: { _baseUrl() { - return "https://remoteretrieval.com/RR-enterprise/remoteretrieval/public/index.php/api/v1"; + // return "https://remoteretrieval.com/RR-enterprise/remoteretrieval/public/index.php/api/v1"; + return "https://remoteretrieval.com/api/v1" }, async _makeRequest(opts = {}) { const { From 2d9089ab1ea6f92552dae15ebefdb2fc0a7e1c41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guilherme=20Falc=C3=A3o?= <48412907+GTFalcao@users.noreply.github.com> Date: Fri, 27 Dec 2024 15:31:24 -0300 Subject: [PATCH 2/8] Update package.json --- components/remote_retrieval/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/remote_retrieval/package.json b/components/remote_retrieval/package.json index d9242dd25524c..7228609fe358c 100644 --- a/components/remote_retrieval/package.json +++ b/components/remote_retrieval/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/remote_retrieval", - "version": "0.1.1", + "version": "0.1.2", "description": "Pipedream Remote Retrieval Components", "main": "remote_retrieval.app.mjs", "keywords": [ From 171e8d707620e00b1b66bbe0a57aec21c90869aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guilherme=20Falc=C3=A3o?= <48412907+GTFalcao@users.noreply.github.com> Date: Fri, 27 Dec 2024 15:31:50 -0300 Subject: [PATCH 3/8] Update create-order.mjs --- .../remote_retrieval/actions/create-order/create-order.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/remote_retrieval/actions/create-order/create-order.mjs b/components/remote_retrieval/actions/create-order/create-order.mjs index 012f9a10ea381..7980aaabb69c8 100644 --- a/components/remote_retrieval/actions/create-order/create-order.mjs +++ b/components/remote_retrieval/actions/create-order/create-order.mjs @@ -4,7 +4,7 @@ export default { key: "remote_retrieval-create-order", name: "Create Order", description: "Create order in Remote Retrieval. [See the documentation](https://www.remoteretrieval.com/api-integration/#create-order)", - version: "0.0.1", + version: "0.0.2", type: "action", props: { app, From 75c762fb16b5a7eaf0efaad4e12b3d76343bcdab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guilherme=20Falc=C3=A3o?= <48412907+GTFalcao@users.noreply.github.com> Date: Fri, 27 Dec 2024 15:32:06 -0300 Subject: [PATCH 4/8] Update get-order-details.mjs --- .../actions/get-order-details/get-order-details.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/remote_retrieval/actions/get-order-details/get-order-details.mjs b/components/remote_retrieval/actions/get-order-details/get-order-details.mjs index 388bd0ea4d602..35e8d0c20bbdd 100644 --- a/components/remote_retrieval/actions/get-order-details/get-order-details.mjs +++ b/components/remote_retrieval/actions/get-order-details/get-order-details.mjs @@ -4,7 +4,7 @@ export default { key: "remote_retrieval-get-order-details", name: "Get Order Details", description: "Get the details of the specified order. [See the documentation](https://www.remoteretrieval.com/api-integration/#order-detail)", - version: "0.0.1", + version: "0.0.2", type: "action", props: { app, From 36fc5fcdf677b161589a8e1ab32a65b4d0db123a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guilherme=20Falc=C3=A3o?= <48412907+GTFalcao@users.noreply.github.com> Date: Fri, 27 Dec 2024 15:32:19 -0300 Subject: [PATCH 5/8] Update get-orders.mjs --- components/remote_retrieval/actions/get-orders/get-orders.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/remote_retrieval/actions/get-orders/get-orders.mjs b/components/remote_retrieval/actions/get-orders/get-orders.mjs index a44211f7b3588..49e396ae119b0 100644 --- a/components/remote_retrieval/actions/get-orders/get-orders.mjs +++ b/components/remote_retrieval/actions/get-orders/get-orders.mjs @@ -4,7 +4,7 @@ export default { key: "remote_retrieval-get-orders", name: "Get Orders", description: "Get a list of all orders. [See the documentation](https://www.remoteretrieval.com/api-integration/#all-orders)", - version: "0.0.1", + version: "0.0.2", type: "action", props: { app, From 04515dcf42335fb94a5422a1414cff3ab888485b Mon Sep 17 00:00:00 2001 From: michelle0927 Date: Wed, 8 Jan 2025 15:23:46 -0500 Subject: [PATCH 6/8] updates --- .../remote_retrieval/actions/get-orders/get-orders.mjs | 4 +++- components/remote_retrieval/remote_retrieval.app.mjs | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/components/remote_retrieval/actions/get-orders/get-orders.mjs b/components/remote_retrieval/actions/get-orders/get-orders.mjs index 49e396ae119b0..9a66684723f77 100644 --- a/components/remote_retrieval/actions/get-orders/get-orders.mjs +++ b/components/remote_retrieval/actions/get-orders/get-orders.mjs @@ -13,7 +13,9 @@ export default { const response = await this.app.getOrders({ $, }); - $.export("$summary", `Successfully retrieved ${response.results.length} orders`); + if (response?.results?.length) { + $.export("$summary", `Successfully retrieved ${response.results.length} orders`); + } return response; }, }; diff --git a/components/remote_retrieval/remote_retrieval.app.mjs b/components/remote_retrieval/remote_retrieval.app.mjs index b51874ed69fca..e7f3be3fa411f 100644 --- a/components/remote_retrieval/remote_retrieval.app.mjs +++ b/components/remote_retrieval/remote_retrieval.app.mjs @@ -12,12 +12,12 @@ export default { async options() { const response = await this.getOrders(); const orderIds = response.results; - return orderIds.map(({ + return orderIds?.map(({ order_id, employee_info, }) => ({ value: order_id, label: employee_info.name, - })); + })) || []; }, }, typeOfEquipment: { @@ -133,7 +133,7 @@ export default { methods: { _baseUrl() { // return "https://remoteretrieval.com/RR-enterprise/remoteretrieval/public/index.php/api/v1"; - return "https://remoteretrieval.com/api/v1" + return "https://remoteretrieval.com/api/v1"; }, async _makeRequest(opts = {}) { const { From 2bb1d962f4ca2b0f054f23794a9e3230fafee7b4 Mon Sep 17 00:00:00 2001 From: michelle0927 Date: Wed, 8 Jan 2025 15:29:54 -0500 Subject: [PATCH 7/8] pnpm-lock.yaml --- pnpm-lock.yaml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d36e97eee033c..7ced5abcd1e78 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1334,8 +1334,7 @@ importers: components/braze: {} - components/breathe: - specifiers: {} + components/breathe: {} components/brevo: dependencies: @@ -24541,22 +24540,22 @@ packages: superagent@3.8.1: resolution: {integrity: sha512-VMBFLYgFuRdfeNQSMLbxGSLfmXL/xc+OO+BZp41Za/NRDBet/BNbkRJrYzCUu0u4GU0i/ml2dtT8b9qgkw9z6Q==} engines: {node: '>= 4.0'} - deprecated: Please upgrade to v7.0.2+ of superagent. We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing. See the releases tab for more information at . + 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 superagent@4.1.0: resolution: {integrity: sha512-FT3QLMasz0YyCd4uIi5HNe+3t/onxMyEho7C3PSqmti3Twgy2rXT4fmkTz6wRL6bTF4uzPcfkUCa8u4JWHw8Ag==} engines: {node: '>= 6.0'} - deprecated: Please upgrade to v7.0.2+ of superagent. We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing. See the releases tab for more information at . + 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 superagent@5.3.1: resolution: {integrity: sha512-wjJ/MoTid2/RuGCOFtlacyGNxN9QLMgcpYLDQlWFIhhdJ93kNscFonGvrpAHSCVjRVj++DGCglocF7Aej1KHvQ==} engines: {node: '>= 7.0.0'} - deprecated: Please upgrade to v7.0.2+ of superagent. We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing. See the releases tab for more information at . + 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 superagent@7.1.6: resolution: {integrity: sha512-gZkVCQR1gy/oUXr+kxJMLDjla434KmSOKbx5iGD30Ql+AkJQ/YlPKECJy2nhqOsHLjGHzoDTXNSjhnvWhzKk7g==} engines: {node: '>=6.4.0 <13 || >=14'} - deprecated: Please downgrade to v7.1.5 if you need IE/ActiveXObject support OR upgrade to v8.0.0 as we no longer support IE and published an incorrect patch version (see https://github.com/visionmedia/superagent/issues/1731) + 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 supports-color@2.0.0: resolution: {integrity: sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==} From bb83ad5fe2930c294bf48472e472df1d19ade146 Mon Sep 17 00:00:00 2001 From: michelle0927 Date: Wed, 8 Jan 2025 15:36:26 -0500 Subject: [PATCH 8/8] pnpm-lock.yaml --- pnpm-lock.yaml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 14a9da7d51cd2..2c968c076c8a4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5204,8 +5204,7 @@ importers: specifier: ^1.5.1 version: 1.6.6 - components/instantly: - specifiers: {} + components/instantly: {} components/instapaper: dependencies: @@ -6644,8 +6643,7 @@ importers: specifier: ^3.0.3 version: 3.0.3 - components/motive: - specifiers: {} + components/motive: {} components/moxie: dependencies: @@ -10832,8 +10830,7 @@ importers: specifier: ^1.5.1 version: 1.6.6 - components/traffit: - specifiers: {} + components/traffit: {} components/trainual: {}