@pipedream/shopify_developer_app 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/actions/create-article/create-article.mjs +1 -1
- package/actions/create-blog/create-blog.mjs +1 -1
- package/actions/create-page/create-page.mjs +1 -1
- package/actions/delete-article/delete-article.mjs +1 -1
- package/actions/delete-blog/delete-blog.mjs +1 -1
- package/actions/delete-page/delete-page.mjs +1 -1
- package/actions/get-articles/get-articles.mjs +1 -1
- package/actions/get-order/get-order.mjs +25 -0
- package/actions/get-pages/get-pages.mjs +1 -1
- package/actions/update-article/update-article.mjs +1 -1
- package/actions/update-page/update-page.mjs +1 -1
- package/common/rest-admin.mjs +28 -0
- package/package.json +1 -1
- package/sources/common/webhook.mjs +1 -1
- package/sources/new-cancelled-order/new-cancelled-order.mjs +1 -1
- package/sources/new-customer-created/new-customer-created.mjs +1 -1
- package/sources/new-draft-order/new-draft-order.mjs +1 -1
- package/sources/new-event-emitted/new-event-emitted.mjs +1 -1
- package/sources/new-fulfillment-event/new-fulfillment-event.mjs +1 -1
- package/sources/new-order-created/new-order-created.mjs +1 -1
- package/sources/new-order-fulfilled/new-order-fulfilled.mjs +1 -1
- package/sources/new-paid-order/new-paid-order.mjs +1 -1
- package/sources/new-product-created/new-product-created.mjs +1 -1
- package/sources/new-product-updated/new-product-updated.mjs +1 -1
- package/sources/new-refund-created/new-refund-created.mjs +1 -1
- package/sources/new-updated-customer/new-updated-customer.mjs +1 -1
- package/sources/new-updated-order/new-updated-order.mjs +1 -1
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
key: "shopify_developer_app-create-article",
|
|
7
7
|
name: "Create Article",
|
|
8
8
|
description: "Create a new blog article. [See The Documentation](https://shopify.dev/docs/api/admin-rest/2023-04/resources/article#post-blogs-blog-id-articles)",
|
|
9
|
-
version: "0.0.
|
|
9
|
+
version: "0.0.5",
|
|
10
10
|
type: "action",
|
|
11
11
|
props: {
|
|
12
12
|
app,
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
key: "shopify_developer_app-create-blog",
|
|
7
7
|
name: "Create Blog",
|
|
8
8
|
description: "Create a new blog. [See The Documentation](https://shopify.dev/docs/api/admin-rest/2023-04/resources/blog#post-blogs)",
|
|
9
|
-
version: "0.0.
|
|
9
|
+
version: "0.0.5",
|
|
10
10
|
type: "action",
|
|
11
11
|
props: {
|
|
12
12
|
app,
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
key: "shopify_developer_app-create-page",
|
|
7
7
|
name: "Create Page",
|
|
8
8
|
description: "Create a new page. [See The Documentation](https://shopify.dev/docs/api/admin-rest/2023-04/resources/page#post-pages)",
|
|
9
|
-
version: "0.0.
|
|
9
|
+
version: "0.0.5",
|
|
10
10
|
type: "action",
|
|
11
11
|
props: {
|
|
12
12
|
app,
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
key: "shopify_developer_app-delete-article",
|
|
7
7
|
name: "Delete Article",
|
|
8
8
|
description: "Delete an existing blog article. [See The Documentation](https://shopify.dev/docs/api/admin-rest/2023-04/resources/article#delete-blogs-blog-id-articles-article-id)",
|
|
9
|
-
version: "0.0.
|
|
9
|
+
version: "0.0.5",
|
|
10
10
|
type: "action",
|
|
11
11
|
props: {
|
|
12
12
|
app,
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
key: "shopify_developer_app-delete-blog",
|
|
7
7
|
name: "Delete Blog",
|
|
8
8
|
description: "Delete an existing blog. [See The Documentation](https://shopify.dev/docs/api/admin-rest/2023-04/resources/blog#delete-blogs-blog-id)",
|
|
9
|
-
version: "0.0.
|
|
9
|
+
version: "0.0.5",
|
|
10
10
|
type: "action",
|
|
11
11
|
props: {
|
|
12
12
|
app,
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
key: "shopify_developer_app-delete-page",
|
|
7
7
|
name: "Delete Page",
|
|
8
8
|
description: "Delete an existing page. [See The Documentation](https://shopify.dev/docs/api/admin-rest/2023-04/resources/page#delete-pages-page-id)",
|
|
9
|
-
version: "0.0.
|
|
9
|
+
version: "0.0.5",
|
|
10
10
|
type: "action",
|
|
11
11
|
props: {
|
|
12
12
|
app,
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
key: "shopify_developer_app-get-articles",
|
|
7
7
|
name: "Get Articles",
|
|
8
8
|
description: "Retrieve a list of all articles from a blog. [See The Documentation](https://shopify.dev/docs/api/admin-rest/2023-04/resources/article#get-blogs-blog-id-articles)",
|
|
9
|
-
version: "0.0.
|
|
9
|
+
version: "0.0.5",
|
|
10
10
|
type: "action",
|
|
11
11
|
props: {
|
|
12
12
|
app,
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import app from "../../common/rest-admin.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
key: "shopify_developer_app-get-order",
|
|
5
|
+
name: "Get Order",
|
|
6
|
+
description: "Retrieve an order by specifying the order ID. [See The Documentation](https://shopify.dev/docs/api/admin-rest/2024-10/resources/order#get-orders)",
|
|
7
|
+
version: "0.0.1",
|
|
8
|
+
type: "action",
|
|
9
|
+
props: {
|
|
10
|
+
app,
|
|
11
|
+
orderId: {
|
|
12
|
+
propDefinition: [
|
|
13
|
+
app,
|
|
14
|
+
"orderId",
|
|
15
|
+
],
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
async run({ $ }) {
|
|
19
|
+
const response = await this.app.getOrder({
|
|
20
|
+
orderId: this.orderId,
|
|
21
|
+
});
|
|
22
|
+
$.export("$summary", `Successfully retrieved order with ID: ${this.orderId}`);
|
|
23
|
+
return response;
|
|
24
|
+
},
|
|
25
|
+
};
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
key: "shopify_developer_app-get-pages",
|
|
7
7
|
name: "Get Pages",
|
|
8
8
|
description: "Retrieve a list of all pages. [See The Documentation](https://shopify.dev/docs/api/admin-rest/2023-04/resources/page#get-pages)",
|
|
9
|
-
version: "0.0.
|
|
9
|
+
version: "0.0.5",
|
|
10
10
|
type: "action",
|
|
11
11
|
props: {
|
|
12
12
|
app,
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
key: "shopify_developer_app-update-article",
|
|
7
7
|
name: "Update Article",
|
|
8
8
|
description: "Update a blog article. [See The Documentation](https://shopify.dev/docs/api/admin-rest/2023-04/resources/article#put-blogs-blog-id-articles-article-id)",
|
|
9
|
-
version: "0.0.
|
|
9
|
+
version: "0.0.5",
|
|
10
10
|
type: "action",
|
|
11
11
|
props: {
|
|
12
12
|
app,
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
key: "shopify_developer_app-update-page",
|
|
7
7
|
name: "Update Page",
|
|
8
8
|
description: "Update an existing page. [See The Documentation](https://shopify.dev/docs/api/admin-rest/2023-04/resources/page#put-pages-page-id)",
|
|
9
|
-
version: "0.0.
|
|
9
|
+
version: "0.0.5",
|
|
10
10
|
type: "action",
|
|
11
11
|
props: {
|
|
12
12
|
app,
|
package/common/rest-admin.mjs
CHANGED
|
@@ -54,6 +54,20 @@ export default {
|
|
|
54
54
|
}));
|
|
55
55
|
},
|
|
56
56
|
},
|
|
57
|
+
orderId: {
|
|
58
|
+
type: "string",
|
|
59
|
+
label: "Order ID",
|
|
60
|
+
description: "The unique numeric identifier for the order.",
|
|
61
|
+
async options() {
|
|
62
|
+
const { orders } = await this.listOrders();
|
|
63
|
+
return orders.map(({
|
|
64
|
+
id: value, name: label,
|
|
65
|
+
}) => ({
|
|
66
|
+
label,
|
|
67
|
+
value,
|
|
68
|
+
}));
|
|
69
|
+
},
|
|
70
|
+
},
|
|
57
71
|
},
|
|
58
72
|
methods: {
|
|
59
73
|
...common.methods,
|
|
@@ -65,5 +79,19 @@ export default {
|
|
|
65
79
|
...headers,
|
|
66
80
|
};
|
|
67
81
|
},
|
|
82
|
+
listOrders(args = {}) {
|
|
83
|
+
return this.makeRequest({
|
|
84
|
+
path: "/orders",
|
|
85
|
+
...args,
|
|
86
|
+
});
|
|
87
|
+
},
|
|
88
|
+
getOrder({
|
|
89
|
+
orderId, ...args
|
|
90
|
+
}) {
|
|
91
|
+
return this.makeRequest({
|
|
92
|
+
path: `/orders/${orderId}`,
|
|
93
|
+
...args,
|
|
94
|
+
});
|
|
95
|
+
},
|
|
68
96
|
},
|
|
69
97
|
};
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
key: "shopify_developer_app-new-product-updated",
|
|
7
7
|
name: "New Product Updated (Instant)",
|
|
8
8
|
description: "Emit new event for each product updated in a store.",
|
|
9
|
-
version: "0.0.
|
|
9
|
+
version: "0.0.3",
|
|
10
10
|
type: "source",
|
|
11
11
|
dedupe: "unique",
|
|
12
12
|
props: {
|