Skip to content

Commit 911930b

Browse files
committed
Merge branch 'master' into issue-14196
2 parents a712830 + bfc0c95 commit 911930b

File tree

246 files changed

+14501
-421
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

246 files changed

+14501
-421
lines changed
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
import { defineApp } from "@pipedream/types";
2-
3-
export default defineApp({
1+
export default {
42
type: "app",
5-
app: "wati",
3+
app: "adyen",
64
propDefinitions: {},
75
methods: {
86
// this.$auth contains connected account data
97
authKeys() {
108
console.log(Object.keys(this.$auth));
119
},
1210
},
13-
});
11+
};

components/adyen/package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "@pipedream/adyen",
3+
"version": "0.0.1",
4+
"description": "Pipedream Adyen Components",
5+
"main": "adyen.app.mjs",
6+
"keywords": [
7+
"pipedream",
8+
"adyen"
9+
],
10+
"homepage": "https://pipedream.com/apps/adyen",
11+
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
12+
"publishConfig": {
13+
"access": "public"
14+
}
15+
}
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
import { defineApp } from "@pipedream/types";
2-
3-
export default defineApp({
1+
export default {
42
type: "app",
5-
app: "xata",
3+
app: "ai_textraction",
64
propDefinitions: {},
75
methods: {
86
// this.$auth contains connected account data
97
authKeys() {
108
console.log(Object.keys(this.$auth));
119
},
1210
},
13-
});
11+
};
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "@pipedream/ai_textraction",
3+
"version": "0.0.1",
4+
"description": "Pipedream AI Textraction Components",
5+
"main": "ai_textraction.app.mjs",
6+
"keywords": [
7+
"pipedream",
8+
"ai_textraction"
9+
],
10+
"homepage": "https://pipedream.com/apps/ai_textraction",
11+
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
12+
"publishConfig": {
13+
"access": "public"
14+
}
15+
}

components/algodocs/algodocs.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/ambee/ambee.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+
};
Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
import app from "../../americommerce.app.mjs";
2+
3+
export default {
4+
key: "americommerce-change-order-status",
5+
name: "Change Order Status",
6+
description: "Changes the status of an existing order. [See the documentation](https://developers.cart.com/docs/rest-api/6898d9f254dfb-update-an-order-status).",
7+
version: "0.0.1",
8+
type: "action",
9+
props: {
10+
app,
11+
orderStatusId: {
12+
optional: false,
13+
propDefinition: [
14+
app,
15+
"orderStatusId",
16+
],
17+
},
18+
name: {
19+
type: "string",
20+
label: "Name",
21+
description: "The name of the order status.",
22+
optional: true,
23+
},
24+
isOpen: {
25+
type: "boolean",
26+
label: "Is Open",
27+
description: "Indicates whether the order status is open.",
28+
optional: true,
29+
},
30+
isDeclined: {
31+
type: "boolean",
32+
label: "Is Declined",
33+
description: "Indicates whether the order status is declined.",
34+
optional: true,
35+
},
36+
isCancelled: {
37+
type: "boolean",
38+
label: "Is Cancelled",
39+
description: "Indicates whether the order status is cancelled.",
40+
optional: true,
41+
},
42+
isShipped: {
43+
type: "boolean",
44+
label: "Is Shipped",
45+
description: "Indicates whether the order status is shipped.",
46+
optional: true,
47+
},
48+
color: {
49+
type: "string",
50+
label: "Color",
51+
description: "The color of the order status.",
52+
optional: true,
53+
},
54+
emailTemplateId: {
55+
propDefinition: [
56+
app,
57+
"emailTemplateId",
58+
],
59+
},
60+
isFullyRefunded: {
61+
type: "boolean",
62+
label: "Is Fully Refunded",
63+
description: "Indicates whether the order status is fully refunded.",
64+
optional: true,
65+
},
66+
isPartiallyRefunded: {
67+
type: "boolean",
68+
label: "Is Partially Refunded",
69+
description: "Indicates whether the order status is partially refunded.",
70+
optional: true,
71+
},
72+
isQuoteStatus: {
73+
type: "boolean",
74+
label: "Is Quote Status",
75+
description: "Indicates whether the order status is a quote status.",
76+
optional: true,
77+
},
78+
isPartiallyShipped: {
79+
type: "boolean",
80+
label: "Is Partially Shipped",
81+
description: "Indicates whether the order status is partially shipped.",
82+
optional: true,
83+
},
84+
},
85+
methods: {
86+
changeOrderStatus({
87+
orderStatusId, ...args
88+
} = {}) {
89+
return this.app.put({
90+
path: `/order_statuses/${orderStatusId}`,
91+
...args,
92+
});
93+
},
94+
},
95+
async run({ $ }) {
96+
const {
97+
changeOrderStatus,
98+
orderStatusId,
99+
name,
100+
isOpen,
101+
isDeclined,
102+
isCancelled,
103+
isShipped,
104+
color,
105+
emailTemplateId,
106+
isFullyRefunded,
107+
isPartiallyRefunded,
108+
isQuoteStatus,
109+
isPartiallyShipped,
110+
} = this;
111+
112+
const response = await changeOrderStatus({
113+
$,
114+
orderStatusId,
115+
data: {
116+
name,
117+
is_open: isOpen,
118+
is_declined: isDeclined,
119+
is_cancelled: isCancelled,
120+
is_shipped: isShipped,
121+
color,
122+
email_template_id: emailTemplateId,
123+
is_fully_refunded: isFullyRefunded,
124+
is_partially_refunded: isPartiallyRefunded,
125+
is_quote_status: isQuoteStatus,
126+
is_partially_shipped: isPartiallyShipped,
127+
},
128+
});
129+
$.export("$summary", `Successfully changed the order status with ID \`${response.id}\`.`);
130+
return response;
131+
},
132+
};

0 commit comments

Comments
 (0)