Skip to content

Commit 9775ad2

Browse files
remoteretrievalGTFalcaomichelle0927
authored
update in url (#15078)
* update in url * Update package.json * Update create-order.mjs * Update get-order-details.mjs * Update get-orders.mjs * updates * pnpm-lock.yaml * pnpm-lock.yaml --------- Co-authored-by: Guilherme Falcão <[email protected]> Co-authored-by: michelle0927 <[email protected]>
1 parent c4001a8 commit 9775ad2

File tree

11 files changed

+17
-14
lines changed

11 files changed

+17
-14
lines changed

components/autodesk/autodesk.app.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ export default {
88
console.log(Object.keys(this.$auth));
99
},
1010
},
11-
};
11+
};

components/easypromos/easypromos.app.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ export default {
88
console.log(Object.keys(this.$auth));
99
},
1010
},
11-
};
11+
};

components/instantly/instantly.app.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ export default {
88
console.log(Object.keys(this.$auth));
99
},
1010
},
11-
};
11+
};

components/motive/motive.app.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ export default {
88
console.log(Object.keys(this.$auth));
99
},
1010
},
11-
};
11+
};

components/remote_retrieval/actions/create-order/create-order.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "remote_retrieval-create-order",
55
name: "Create Order",
66
description: "Create order in Remote Retrieval. [See the documentation](https://www.remoteretrieval.com/api-integration/#create-order)",
7-
version: "0.0.1",
7+
version: "0.0.2",
88
type: "action",
99
props: {
1010
app,

components/remote_retrieval/actions/get-order-details/get-order-details.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "remote_retrieval-get-order-details",
55
name: "Get Order Details",
66
description: "Get the details of the specified order. [See the documentation](https://www.remoteretrieval.com/api-integration/#order-detail)",
7-
version: "0.0.1",
7+
version: "0.0.2",
88
type: "action",
99
props: {
1010
app,

components/remote_retrieval/actions/get-orders/get-orders.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "remote_retrieval-get-orders",
55
name: "Get Orders",
66
description: "Get a list of all orders. [See the documentation](https://www.remoteretrieval.com/api-integration/#all-orders)",
7-
version: "0.0.1",
7+
version: "0.0.2",
88
type: "action",
99
props: {
1010
app,
@@ -13,7 +13,9 @@ export default {
1313
const response = await this.app.getOrders({
1414
$,
1515
});
16-
$.export("$summary", `Successfully retrieved ${response.results.length} orders`);
16+
if (response?.results?.length) {
17+
$.export("$summary", `Successfully retrieved ${response.results.length} orders`);
18+
}
1719
return response;
1820
},
1921
};

components/remote_retrieval/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/remote_retrieval",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "Pipedream Remote Retrieval Components",
55
"main": "remote_retrieval.app.mjs",
66
"keywords": [

components/remote_retrieval/remote_retrieval.app.mjs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ export default {
1212
async options() {
1313
const response = await this.getOrders();
1414
const orderIds = response.results;
15-
return orderIds.map(({
15+
return orderIds?.map(({
1616
order_id, employee_info,
1717
}) => ({
1818
value: order_id,
1919
label: employee_info.name,
20-
}));
20+
})) || [];
2121
},
2222
},
2323
typeOfEquipment: {
@@ -132,7 +132,8 @@ export default {
132132
},
133133
methods: {
134134
_baseUrl() {
135-
return "https://remoteretrieval.com/RR-enterprise/remoteretrieval/public/index.php/api/v1";
135+
// return "https://remoteretrieval.com/RR-enterprise/remoteretrieval/public/index.php/api/v1";
136+
return "https://remoteretrieval.com/api/v1";
136137
},
137138
async _makeRequest(opts = {}) {
138139
const {

components/textline/textline.app.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ export default {
88
console.log(Object.keys(this.$auth));
99
},
1010
},
11-
};
11+
};

0 commit comments

Comments
 (0)