diff --git a/components/autodesk/autodesk.app.mjs b/components/autodesk/autodesk.app.mjs index dd899e5bb04ff..67dc994768ffb 100644 --- a/components/autodesk/autodesk.app.mjs +++ b/components/autodesk/autodesk.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/easypromos/easypromos.app.mjs b/components/easypromos/easypromos.app.mjs index 2b6dbbddc801a..2d7736c9c3eb6 100644 --- a/components/easypromos/easypromos.app.mjs +++ b/components/easypromos/easypromos.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/instantly/instantly.app.mjs b/components/instantly/instantly.app.mjs index 2a680f5c7af7f..40deb273427fb 100644 --- a/components/instantly/instantly.app.mjs +++ b/components/instantly/instantly.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/motive/motive.app.mjs b/components/motive/motive.app.mjs index 1a0959808ceca..185cde19a37f5 100644 --- a/components/motive/motive.app.mjs +++ b/components/motive/motive.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; 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, 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, diff --git a/components/remote_retrieval/actions/get-orders/get-orders.mjs b/components/remote_retrieval/actions/get-orders/get-orders.mjs index a44211f7b3588..9a66684723f77 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, @@ -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/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": [ diff --git a/components/remote_retrieval/remote_retrieval.app.mjs b/components/remote_retrieval/remote_retrieval.app.mjs index aa16fc59bca2c..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: { @@ -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 { diff --git a/components/textline/textline.app.mjs b/components/textline/textline.app.mjs index ec23d037613eb..7fe56e9326683 100644 --- a/components/textline/textline.app.mjs +++ b/components/textline/textline.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/traffit/traffit.app.mjs b/components/traffit/traffit.app.mjs index e803c934f2871..58ed416ccfc25 100644 --- a/components/traffit/traffit.app.mjs +++ b/components/traffit/traffit.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 aea813e82d1e7..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: {} @@ -24721,22 +24718,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==}