@pipedream/shopify_developer_app 0.0.1 → 0.1.1

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.
Files changed (43) hide show
  1. package/README.md +31 -0
  2. package/actions/add-product-to-custom-collection/add-product-to-custom-collection.mjs +32 -0
  3. package/actions/add-tags/add-tags.mjs +15 -0
  4. package/actions/common/metafield-actions.mjs +10 -0
  5. package/actions/common/metaobjects.mjs +21 -0
  6. package/actions/create-article/create-article.mjs +34 -0
  7. package/actions/create-blog/create-blog.mjs +21 -0
  8. package/actions/create-custom-collection/create-custom-collection.mjs +36 -0
  9. package/actions/create-customer/create-customer.mjs +75 -0
  10. package/actions/create-metafield/create-metafield.mjs +19 -0
  11. package/actions/create-metaobject/create-metaobject.mjs +27 -0
  12. package/actions/create-order/create-order.mjs +26 -0
  13. package/actions/create-page/create-page.mjs +27 -0
  14. package/actions/create-product/create-product.mjs +69 -0
  15. package/actions/create-product-variant/create-product-variant.mjs +49 -0
  16. package/actions/create-smart-collection/create-smart-collection.mjs +27 -0
  17. package/actions/delete-article/delete-article.mjs +29 -0
  18. package/actions/delete-blog/delete-blog.mjs +20 -0
  19. package/actions/delete-metafield/delete-metafield.mjs +19 -0
  20. package/actions/delete-page/delete-page.mjs +20 -0
  21. package/actions/get-articles/get-articles.mjs +20 -0
  22. package/actions/get-metafields/get-metafields.mjs +19 -0
  23. package/actions/get-metaobjects/get-metaobjects.mjs +26 -0
  24. package/actions/get-pages/get-pages.mjs +14 -0
  25. package/actions/search-custom-collection-by-name/search-custom-collection-by-name.mjs +22 -0
  26. package/actions/search-customers/search-customers.mjs +27 -0
  27. package/actions/search-product-variant/search-product-variant.mjs +38 -0
  28. package/actions/search-products/search-products.mjs +48 -0
  29. package/actions/update-article/update-article.mjs +43 -0
  30. package/actions/update-customer/update-customer.mjs +89 -0
  31. package/actions/update-inventory-level/update-inventory-level.mjs +36 -0
  32. package/actions/update-metafield/update-metafield.mjs +19 -0
  33. package/actions/update-metaobject/update-metaobject.mjs +27 -0
  34. package/actions/update-page/update-page.mjs +33 -0
  35. package/actions/update-product/update-product.mjs +84 -0
  36. package/actions/update-product-variant/update-product-variant.mjs +78 -0
  37. package/common/rest-admin.mjs +69 -0
  38. package/package.json +6 -5
  39. package/shopify_developer_app.app.mjs +18 -0
  40. package/sources/new-abandoned-cart/new-abandoned-cart.mjs +16 -0
  41. package/sources/new-article/new-article.mjs +16 -0
  42. package/sources/new-page/new-page.mjs +16 -0
  43. package/sources/product-added-to-custom-collection/product-added-to-custom-collection.mjs +16 -0
package/README.md ADDED
@@ -0,0 +1,31 @@
1
+ # Overview
2
+ By creating a custom app on Shopify, you will be able to configure the exact scopes that you require to build the workflows that you need.
3
+
4
+ # Getting Started
5
+
6
+ To get started, you will need to create a custom Shopify app in the Shopify Admin UI. The steps are outlined below:
7
+
8
+ ## Create a Shopify app
9
+ 1. Sign in to your Shopify admin account, and navigate to the store that you are managing.
10
+ 2. Click **Develop apps**.
11
+ 3. Click **Allow custom app development**.
12
+ 4. Click **Create an App**, and name the app "Pipedream"
13
+
14
+ ![Create an App](https://res.cloudinary.com/dpenc2lit/image/upload/v1688060015/Screenshot_2023-06-29_at_10.11.43_AM_unkom4.png)
15
+
16
+ ## Configure Admin API scopes
17
+ 1. In the new app you have created, under the **Configuration** tab, click **Configure Admin API scopes**
18
+ 2. Select the scopes that you require for your use case. You may modify your scopes at any time by returning to the app configuration page.
19
+
20
+ ## Generate the Admin API access token
21
+ 1. Under API credentials, click **Install app**.
22
+ 2. Click **Reveal token once** and save it in a secure location (we recommend using a password manager such as 1Password) -- you will need it when setting up authentication on Pipedream, and it is only revealed once. If you happen to lose this, you will need to uninstall the app, and reinstall it on Shopify to generate a new access token.
23
+
24
+ ![API Credentials](https://res.cloudinary.com/dpenc2lit/image/upload/v1688061470/Screenshot_2023-06-29_at_10.54.53_AM_jta5gc.png)
25
+
26
+ ## Connect your Shopify app with Pipedream using your access token
27
+
28
+ At this point, you should have a Pipedream App connected to your Shopify store, and a long-lived access token.
29
+
30
+ 1. When prompted in Pipedream after trying to connect the Shopify Developer App, copy and paste your **shop id** along with your **access token** saved from the previous step.
31
+ 2. Click **Connect** and your custom Shopify app should be integrated into Pipedream!
@@ -0,0 +1,32 @@
1
+ import shopify from "../../shopify_developer_app.app.mjs";
2
+ import common from "../../../shopify/actions/add-product-to-custom-collection/common.mjs";
3
+
4
+ export default {
5
+ ...common,
6
+ key: "shopify_developer_app-add-product-to-custom-collection",
7
+ name: "Add Products to Custom Collections",
8
+ description: "Adds a product or products to a custom collection or collections. [See the docs](https://shopify.dev/docs/api/admin-rest/2023-01/resources/collect#post-collects)",
9
+ version: "0.0.1",
10
+ type: "action",
11
+ props: {
12
+ shopify,
13
+ productIds: {
14
+ propDefinition: [
15
+ shopify,
16
+ "productId",
17
+ ],
18
+ type: "string[]",
19
+ label: "Product IDs",
20
+ },
21
+ collectionIds: {
22
+ propDefinition: [
23
+ shopify,
24
+ "collectionId",
25
+ ],
26
+ type: "string[]",
27
+ label: "Collection IDs",
28
+ description: "IDs of the collections that the product will be added to",
29
+ optional: false,
30
+ },
31
+ },
32
+ };
@@ -0,0 +1,15 @@
1
+ import shopify from "../../shopify_developer_app.app.mjs";
2
+ import common from "../../../shopify/actions/add-tags/common.mjs";
3
+
4
+ export default {
5
+ ...common,
6
+ name: "Add Tags",
7
+ version: "0.0.1",
8
+ key: "shopify_developer_app-add-tags",
9
+ description: "Add tags. [See the documentation](https://shopify.dev/api/admin-graphql/2022-07/mutations/tagsadd)",
10
+ type: "action",
11
+ props: {
12
+ shopify,
13
+ ...common.props,
14
+ },
15
+ };
@@ -0,0 +1,10 @@
1
+ import shopify from "../../shopify_developer_app.app.mjs";
2
+ import metafieldActions from "../../../shopify/actions/common/metafield-actions.mjs";
3
+
4
+ export default {
5
+ ...metafieldActions,
6
+ props: {
7
+ ...metafieldActions.props,
8
+ shopify,
9
+ },
10
+ };
@@ -0,0 +1,21 @@
1
+ import metaobjects from "../../../shopify/actions/common/metaobjects.mjs";
2
+ import { axios } from "@pipedream/platform";
3
+
4
+ export default {
5
+ ...metaobjects,
6
+ methods: {
7
+ ...metaobjects.methods,
8
+ async makeGraphQLRequest({
9
+ $ = this, ...args
10
+ }) {
11
+ return axios($, {
12
+ url: `https://${this.shopify.getShopId()}.myshopify.com/admin/api/2023-04/graphql.json`,
13
+ method: "POST",
14
+ headers: {
15
+ "X-Shopify-Access-Token": `${this.shopify.$auth.access_token}`,
16
+ },
17
+ ...args,
18
+ });
19
+ },
20
+ },
21
+ };
@@ -0,0 +1,34 @@
1
+ import app from "../../common/rest-admin.mjs";
2
+ import common from "../../../shopify/actions/create-article/common.mjs";
3
+
4
+ export default {
5
+ ...common,
6
+ key: "shopify_developer_app-create-article",
7
+ name: "Create Article",
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.1",
10
+ type: "action",
11
+ props: {
12
+ app,
13
+ blogId: {
14
+ propDefinition: [
15
+ app,
16
+ "blogId",
17
+ ],
18
+ },
19
+ title: {
20
+ description: "The title of the article.",
21
+ propDefinition: [
22
+ app,
23
+ "title",
24
+ ],
25
+ },
26
+ bodyHtml: {
27
+ description: "The text content of the article, complete with HTML markup.",
28
+ propDefinition: [
29
+ app,
30
+ "bodyHtml",
31
+ ],
32
+ },
33
+ },
34
+ };
@@ -0,0 +1,21 @@
1
+ import app from "../../common/rest-admin.mjs";
2
+ import common from "../../../shopify/actions/create-blog/common.mjs";
3
+
4
+ export default {
5
+ ...common,
6
+ key: "shopify_developer_app-create-blog",
7
+ name: "Create Blog",
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.1",
10
+ type: "action",
11
+ props: {
12
+ app,
13
+ title: {
14
+ description: "The title of the blog.",
15
+ propDefinition: [
16
+ app,
17
+ "title",
18
+ ],
19
+ },
20
+ },
21
+ };
@@ -0,0 +1,36 @@
1
+ import shopify from "../../shopify_developer_app.app.mjs";
2
+ import common from "../../../shopify/actions/create-custom-collection/common.mjs";
3
+
4
+ export default {
5
+ ...common,
6
+ key: "shopify_developer_app-create-custom-collection",
7
+ name: "Create Custom Collection",
8
+ description: "Create a new custom collection. [See the documentation](https://shopify.dev/docs/api/admin-rest/2023-01/resources/customcollection#post-custom-collections)",
9
+ version: "0.0.1",
10
+ type: "action",
11
+ props: {
12
+ shopify,
13
+ title: {
14
+ propDefinition: [
15
+ shopify,
16
+ "title",
17
+ ],
18
+ description: "The name of the custom collection",
19
+ },
20
+ products: {
21
+ propDefinition: [
22
+ shopify,
23
+ "productId",
24
+ ],
25
+ type: "string[]",
26
+ optional: true,
27
+ },
28
+ metafields: {
29
+ propDefinition: [
30
+ shopify,
31
+ "metafields",
32
+ ],
33
+ },
34
+ ...common.props,
35
+ },
36
+ };
@@ -0,0 +1,75 @@
1
+ import shopify from "../../shopify_developer_app.app.mjs";
2
+ import common from "../../../shopify/actions/create-customer/common.mjs";
3
+
4
+ export default {
5
+ ...common,
6
+ key: "shopify_developer_app-create-customer",
7
+ name: "Create Customer",
8
+ description: "Create a new customer. [See the documentation](https://shopify.dev/api/admin-rest/2022-01/resources/customer#[post]/admin/api/2022-01/customers.json)",
9
+ version: "0.0.1",
10
+ type: "action",
11
+ props: {
12
+ shopify,
13
+ firstName: {
14
+ propDefinition: [
15
+ shopify,
16
+ "firstName",
17
+ ],
18
+ },
19
+ lastName: {
20
+ propDefinition: [
21
+ shopify,
22
+ "lastName",
23
+ ],
24
+ },
25
+ email: {
26
+ propDefinition: [
27
+ shopify,
28
+ "email",
29
+ ],
30
+ },
31
+ phone: {
32
+ propDefinition: [
33
+ shopify,
34
+ "phone",
35
+ ],
36
+ },
37
+ address: {
38
+ propDefinition: [
39
+ shopify,
40
+ "address",
41
+ ],
42
+ },
43
+ company: {
44
+ propDefinition: [
45
+ shopify,
46
+ "company",
47
+ ],
48
+ },
49
+ city: {
50
+ propDefinition: [
51
+ shopify,
52
+ "city",
53
+ ],
54
+ },
55
+ province: {
56
+ propDefinition: [
57
+ shopify,
58
+ "province",
59
+ ],
60
+ },
61
+ country: {
62
+ propDefinition: [
63
+ shopify,
64
+ "country",
65
+ ],
66
+ },
67
+ zip: {
68
+ propDefinition: [
69
+ shopify,
70
+ "zip",
71
+ ],
72
+ },
73
+ ...common.props,
74
+ },
75
+ };
@@ -0,0 +1,19 @@
1
+ import metafieldActions from "../common/metafield-actions.mjs";
2
+ import common from "../../../shopify/actions/create-metafield/common.mjs";
3
+
4
+ export default {
5
+ ...common,
6
+ key: "shopify_developer_app-create-metafield",
7
+ name: "Create Metafield",
8
+ description: "Creates a metafield belonging to a resource. [See the docs](https://shopify.dev/api/admin-rest/2023-01/resources/metafield#post-blogs-blog-id-metafields)",
9
+ version: "0.0.1",
10
+ type: "action",
11
+ props: {
12
+ ...metafieldActions.props,
13
+ ...common.props,
14
+ },
15
+ methods: {
16
+ ...metafieldActions.methods,
17
+ ...common.methods,
18
+ },
19
+ };
@@ -0,0 +1,27 @@
1
+ import shopify from "../../shopify_developer_app.app.mjs";
2
+ import metaobjects from "../common/metaobjects.mjs";
3
+ import common from "../../../shopify/actions/create-metaobject/common.mjs";
4
+
5
+ export default {
6
+ ...metaobjects,
7
+ ...common,
8
+ key: "shopify_developer_app-create-metaobject",
9
+ name: "Create Metaobject",
10
+ description: "Creates a metaobject. [See the documentation](https://shopify.dev/docs/api/admin-graphql/2023-04/mutations/metaobjectCreate)",
11
+ version: "0.0.1",
12
+ type: "action",
13
+ props: {
14
+ shopify,
15
+ type: {
16
+ type: "string",
17
+ label: "Type",
18
+ description: "The Metaobject Type",
19
+ async options() {
20
+ const { data: { metaobjectDefinitions: { nodes } } }
21
+ = await this.listMetaobjectDefinitions();
22
+ return nodes?.map(({ type }) => type) || [];
23
+ },
24
+ reloadProps: true,
25
+ },
26
+ },
27
+ };
@@ -0,0 +1,26 @@
1
+ import shopify from "../../shopify_developer_app.app.mjs";
2
+ import common from "../../../shopify/actions/create-order/common.mjs";
3
+ import { toSingleLineString } from "../../../shopify/actions/common/common.mjs";
4
+
5
+ export default {
6
+ ...common,
7
+ key: "shopify_developer_app-create-order",
8
+ name: "Create Order",
9
+ description: toSingleLineString(`Creates a new order.
10
+ For full order object details [see the docs](https://shopify.dev/api/admin-rest/2022-01/resources/order#[post]/admin/api/2022-01/orders.json)
11
+ or [see examples](https://shopify.dev/api/admin-rest/2022-01/resources/order#[post]/admin/api/#{api_version}/orders.json_examples)
12
+ `),
13
+ version: "0.0.1",
14
+ type: "action",
15
+ props: {
16
+ shopify,
17
+ customerId: {
18
+ propDefinition: [
19
+ shopify,
20
+ "customerId",
21
+ ],
22
+ optional: true,
23
+ },
24
+ ...common.props,
25
+ },
26
+ };
@@ -0,0 +1,27 @@
1
+ import app from "../../common/rest-admin.mjs";
2
+ import common from "../../../shopify/actions/create-page/common.mjs";
3
+
4
+ export default {
5
+ ...common,
6
+ key: "shopify_developer_app-create-page",
7
+ name: "Create Page",
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.1",
10
+ type: "action",
11
+ props: {
12
+ app,
13
+ title: {
14
+ description: "The title of the page.",
15
+ propDefinition: [
16
+ app,
17
+ "title",
18
+ ],
19
+ },
20
+ bodyHtml: {
21
+ propDefinition: [
22
+ app,
23
+ "bodyHtml",
24
+ ],
25
+ },
26
+ },
27
+ };
@@ -0,0 +1,69 @@
1
+ import shopify from "../../shopify_developer_app.app.mjs";
2
+ import common from "../../../shopify/actions/create-product/common.mjs";
3
+
4
+ export default {
5
+ ...common,
6
+ key: "shopify_developer_app-create-product",
7
+ name: "Create Product",
8
+ description: "Create a new product. [See the documentation](https://shopify.dev/api/admin-rest/2022-01/resources/product#[post]/admin/api/2022-01/products.json)",
9
+ version: "0.0.1",
10
+ type: "action",
11
+ props: {
12
+ shopify,
13
+ title: {
14
+ propDefinition: [
15
+ shopify,
16
+ "title",
17
+ ],
18
+ },
19
+ productDescription: {
20
+ propDefinition: [
21
+ shopify,
22
+ "productDescription",
23
+ ],
24
+ },
25
+ vendor: {
26
+ propDefinition: [
27
+ shopify,
28
+ "vendor",
29
+ ],
30
+ },
31
+ productType: {
32
+ propDefinition: [
33
+ shopify,
34
+ "productType",
35
+ ],
36
+ },
37
+ status: {
38
+ propDefinition: [
39
+ shopify,
40
+ "status",
41
+ ],
42
+ },
43
+ images: {
44
+ propDefinition: [
45
+ shopify,
46
+ "images",
47
+ ],
48
+ },
49
+ options: {
50
+ propDefinition: [
51
+ shopify,
52
+ "options",
53
+ ],
54
+ },
55
+ variants: {
56
+ propDefinition: [
57
+ shopify,
58
+ "variants",
59
+ ],
60
+ },
61
+ tags: {
62
+ propDefinition: [
63
+ shopify,
64
+ "tags",
65
+ ],
66
+ },
67
+ ...common.props,
68
+ },
69
+ };
@@ -0,0 +1,49 @@
1
+ import shopify from "../../shopify_developer_app.app.mjs";
2
+ import common from "../../../shopify/actions/create-product-variant/common.mjs";
3
+
4
+ export default {
5
+ ...common,
6
+ key: "shopify_developer_app-create-product-variant",
7
+ name: "Create Product Variant",
8
+ description: "Create a new product variant. [See the documentation](https://shopify.dev/api/admin-rest/2022-01/resources/product-variant#[post]/admin/api/2022-01/products/{product_id}/variants.json)",
9
+ version: "0.0.1",
10
+ type: "action",
11
+ props: {
12
+ shopify,
13
+ productId: {
14
+ propDefinition: [
15
+ shopify,
16
+ "productId",
17
+ ],
18
+ },
19
+ option: {
20
+ propDefinition: [
21
+ shopify,
22
+ "option",
23
+ ],
24
+ },
25
+ price: {
26
+ propDefinition: [
27
+ shopify,
28
+ "price",
29
+ ],
30
+ description: "The price of the product variant",
31
+ },
32
+ imageId: {
33
+ propDefinition: [
34
+ shopify,
35
+ "imageId",
36
+ (c) => ({
37
+ productId: c.productId,
38
+ }),
39
+ ],
40
+ },
41
+ sku: {
42
+ propDefinition: [
43
+ shopify,
44
+ "sku",
45
+ ],
46
+ },
47
+ ...common.props,
48
+ },
49
+ };
@@ -0,0 +1,27 @@
1
+ import shopify from "../../shopify_developer_app.app.mjs";
2
+ import { toSingleLineString } from "../../../shopify/actions/common/common.mjs";
3
+ import common from "../../../shopify/actions/create-smart-collection/common.mjs";
4
+
5
+ export default {
6
+ ...common,
7
+ key: "shopify_developer_app-create-smart-collection",
8
+ name: "Create Smart Collection",
9
+ description: toSingleLineString(`
10
+ Creates a smart collection.
11
+ You can fill in any number of rules by selecting more than one option in each prop.
12
+ [See documentation](https://shopify.dev/api/admin-rest/2021-10/resources/smartcollection#post-smart-collections)
13
+ `),
14
+ version: "0.0.1",
15
+ type: "action",
16
+ props: {
17
+ shopify,
18
+ title: {
19
+ propDefinition: [
20
+ shopify,
21
+ "title",
22
+ ],
23
+ description: "Title of the smart collection",
24
+ },
25
+ ...common.props,
26
+ },
27
+ };
@@ -0,0 +1,29 @@
1
+ import app from "../../common/rest-admin.mjs";
2
+ import common from "../../../shopify/actions/delete-article/common.mjs";
3
+
4
+ export default {
5
+ ...common,
6
+ key: "shopify_developer_app-delete-article",
7
+ name: "Delete Article",
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.1",
10
+ type: "action",
11
+ props: {
12
+ app,
13
+ blogId: {
14
+ propDefinition: [
15
+ app,
16
+ "blogId",
17
+ ],
18
+ },
19
+ articleId: {
20
+ propDefinition: [
21
+ app,
22
+ "articleId",
23
+ ({ blogId }) => ({
24
+ blogId,
25
+ }),
26
+ ],
27
+ },
28
+ },
29
+ };
@@ -0,0 +1,20 @@
1
+ import app from "../../common/rest-admin.mjs";
2
+ import common from "../../../shopify/actions/delete-blog/common.mjs";
3
+
4
+ export default {
5
+ ...common,
6
+ key: "shopify_developer_app-delete-blog",
7
+ name: "Delete Blog",
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.1",
10
+ type: "action",
11
+ props: {
12
+ app,
13
+ blogId: {
14
+ propDefinition: [
15
+ app,
16
+ "blogId",
17
+ ],
18
+ },
19
+ },
20
+ };
@@ -0,0 +1,19 @@
1
+ import metafieldActions from "../common/metafield-actions.mjs";
2
+ import common from "../../../shopify/actions/delete-metafield/common.mjs";
3
+
4
+ export default {
5
+ ...common,
6
+ key: "shopify_developer_app-delete-metafield",
7
+ name: "Delete Metafield",
8
+ description: "Deletes a metafield belonging to a resource. [See the documentation](https://shopify.dev/docs/api/admin-rest/2023-01/resources/metafield#delete-blogs-blog-id-metafields-metafield-id)",
9
+ version: "0.0.1",
10
+ type: "action",
11
+ props: {
12
+ ...metafieldActions.props,
13
+ ...common.props,
14
+ },
15
+ methods: {
16
+ ...metafieldActions.methods,
17
+ ...common.methods,
18
+ },
19
+ };
@@ -0,0 +1,20 @@
1
+ import app from "../../common/rest-admin.mjs";
2
+ import common from "../../../shopify/actions/delete-page/common.mjs";
3
+
4
+ export default {
5
+ ...common,
6
+ key: "shopify_developer_app-delete-page",
7
+ name: "Delete Page",
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.1",
10
+ type: "action",
11
+ props: {
12
+ app,
13
+ pageId: {
14
+ propDefinition: [
15
+ app,
16
+ "pageId",
17
+ ],
18
+ },
19
+ },
20
+ };
@@ -0,0 +1,20 @@
1
+ import app from "../../common/rest-admin.mjs";
2
+ import common from "../../../shopify/actions/get-articles/common.mjs";
3
+
4
+ export default {
5
+ ...common,
6
+ key: "shopify_developer_app-get-articles",
7
+ name: "Get Articles",
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.1",
10
+ type: "action",
11
+ props: {
12
+ app,
13
+ blogId: {
14
+ propDefinition: [
15
+ app,
16
+ "blogId",
17
+ ],
18
+ },
19
+ },
20
+ };
@@ -0,0 +1,19 @@
1
+ import metafieldActions from "../common/metafield-actions.mjs";
2
+ import common from "../../../shopify/actions/get-metafields/common.mjs";
3
+
4
+ export default {
5
+ ...common,
6
+ key: "shopify_developer_app-get-metafields",
7
+ name: "Get Metafields",
8
+ description: "Retrieves a list of metafields that belong to a resource. [See the docs](https://shopify.dev/api/admin-rest/2023-01/resources/metafield#get-metafields?metafield[owner-id]=382285388&metafield[owner-resource]=blog)",
9
+ version: "0.0.1",
10
+ type: "action",
11
+ props: {
12
+ ...metafieldActions.props,
13
+ ...common.props,
14
+ },
15
+ methods: {
16
+ ...metafieldActions.methods,
17
+ ...common.methods,
18
+ },
19
+ };