Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/autodesk/autodesk.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/easypromos/easypromos.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/instantly/instantly.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/motive/motive.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 4 additions & 2 deletions components/remote_retrieval/actions/get-orders/get-orders.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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;
},
};
2 changes: 1 addition & 1 deletion components/remote_retrieval/package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
7 changes: 4 additions & 3 deletions components/remote_retrieval/remote_retrieval.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion components/textline/textline.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/traffit/traffit.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
17 changes: 7 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading