Skip to content

Commit 3ccc173

Browse files
committed
[ACTION] Picqer.com MCP server #16939
Sources - New Event (Instant) Actions - Add Order Comment - Add Return Comment - Create Order - Get Customer - Get Order - Get Picklist - Get Status Per Order Line - Search Orders - Update Order
1 parent 45ef1cb commit 3ccc173

File tree

24 files changed

+1777
-596
lines changed

24 files changed

+1777
-596
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
import picqer from "../../picqer.app.mjs";
2+
3+
export default {
4+
key: "picqer-add-order-comment",
5+
name: "Add Comment To Order",
6+
description: "Add a comment to an order in Picqer. [See the documentation](https://picqer.com/en/api/comments#adding-comments-to-an-order)",
7+
version: "0.0.1",
8+
type: "action",
9+
props: {
10+
picqer,
11+
orderId: {
12+
propDefinition: [
13+
picqer,
14+
"orderId",
15+
],
16+
},
17+
body: {
18+
propDefinition: [
19+
picqer,
20+
"commentBody",
21+
],
22+
},
23+
showAtRelated: {
24+
propDefinition: [
25+
picqer,
26+
"showAtRelated",
27+
],
28+
},
29+
isVisibleFulfillment: {
30+
propDefinition: [
31+
picqer,
32+
"isVisibleFulfillment",
33+
],
34+
},
35+
},
36+
async run({ $ }) {
37+
const response = await this.picqer.addOrderComment({
38+
$,
39+
orderId: this.orderId,
40+
data: {
41+
body: this.body,
42+
show_at_related: this.showAtRelated,
43+
is_visible_fulfilment: this.isVisibleFulfillment,
44+
},
45+
});
46+
47+
$.export("$summary", `Successfully added comment to order ${this.orderId}`);
48+
return response;
49+
},
50+
};
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
import picqer from "../../picqer.app.mjs";
2+
3+
export default {
4+
key: "picqer-add-return-comment",
5+
name: "Add Comment To Return",
6+
description: "Add a comment to a return in Picqer. [See the documentation](https://picqer.com/en/api/comments#add-a-comment-to-an-return)",
7+
version: "0.0.1",
8+
type: "action",
9+
props: {
10+
picqer,
11+
returnId: {
12+
propDefinition: [
13+
picqer,
14+
"returnId",
15+
],
16+
},
17+
body: {
18+
propDefinition: [
19+
picqer,
20+
"commentBody",
21+
],
22+
},
23+
showAtRelated: {
24+
propDefinition: [
25+
picqer,
26+
"showAtRelated",
27+
],
28+
},
29+
isVisibleFulfillment: {
30+
propDefinition: [
31+
picqer,
32+
"isVisibleFulfillment",
33+
],
34+
},
35+
},
36+
async run({ $ }) {
37+
const response = await this.picqer.addReturnComment({
38+
$,
39+
returnId: this.returnId,
40+
data: {
41+
body: this.body,
42+
show_at_related: this.showAtRelated,
43+
is_visible_fulfilment: this.isVisibleFulfillment,
44+
},
45+
});
46+
47+
$.export("$summary", `Successfully added comment to return ${this.returnId}`);
48+
return response;
49+
},
50+
};

components/picqer/actions/check-return-receipt/check-return-receipt.mjs

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)