Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "shopify-add-product-to-custom-collection",
name: "Add Products to Custom Collection",
description: "Adds a product or products to a custom collection. [See the documentation](https://shopify.dev/docs/api/admin-graphql/latest/mutations/collectionAddProductsV2)",
version: "0.0.8",
version: "0.0.9",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
2 changes: 1 addition & 1 deletion components/shopify/actions/add-tags/add-tags.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "shopify-add-tags",
name: "Add Tags",
description: "Add tags. [See the documentation](https://shopify.dev/docs/api/admin-graphql/latest/mutations/tagsAdd)",
version: "0.0.14",
version: "0.0.15",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
2 changes: 1 addition & 1 deletion components/shopify/actions/bulk-import/bulk-import.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
key: "shopify-bulk-import",
name: "Bulk Import",
description: "Execute bulk mutations by uploading a JSONL file containing mutation variables. [See the documentation](https://shopify.dev/docs/api/admin-graphql/latest/mutations/bulkoperationrunmutation)",
version: "0.0.4",
version: "0.0.5",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand All @@ -16,7 +16,7 @@
type: "action",
props: {
shopify,
alert: {

Check warning on line 19 in components/shopify/actions/bulk-import/bulk-import.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop alert must have a description. See https://pipedream.com/docs/components/guidelines/#props

Check warning on line 19 in components/shopify/actions/bulk-import/bulk-import.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop alert must have a label. See https://pipedream.com/docs/components/guidelines/#props
type: "alert",
alertType: "info",
content: "Use the Shopify trigger \"New Event Emitted (Instant)\" with event type `bulk_operations/finish` to receive notifications when bulk imports are completed",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "shopify-create-article",
name: "Create Article",
description: "Create a new blog article. [See the documentation](https://shopify.dev/docs/api/admin-graphql/latest/mutations/articleCreate)",
version: "0.0.8",
version: "0.0.9",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
2 changes: 1 addition & 1 deletion components/shopify/actions/create-blog/create-blog.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "shopify-create-blog",
name: "Create Blog",
description: "Create a new blog. [See the documentation](https://shopify.dev/docs/api/admin-graphql/latest/mutations/blogCreate)",
version: "0.0.8",
version: "0.0.9",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "shopify-create-custom-collection",
name: "Create Custom Collection",
description: "Create a new custom collection. [See the documentation](https://shopify.dev/docs/api/admin-graphql/latest/mutations/collectionCreate)",
version: "0.0.8",
version: "0.0.9",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "shopify-create-metafield",
name: "Create Metafield",
description: "Creates a metafield belonging to a resource. [See the documentation](https://shopify.dev/docs/api/admin-graphql/latest/mutations/metafieldDefinitionCreate)",
version: "0.0.12",
version: "0.0.13",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
key: "shopify-create-metaobject",
name: "Create Metaobject",
description: "Creates a metaobject. [See the documentation](https://shopify.dev/docs/api/admin-graphql/latest/mutations/metaobjectCreate)",
version: "0.0.7",
version: "0.0.8",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
2 changes: 1 addition & 1 deletion components/shopify/actions/create-page/create-page.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "shopify-create-page",
name: "Create Page",
description: "Create a new page. [See the documentation](https://shopify.dev/docs/api/admin-graphql/latest/mutations/pageCreate)",
version: "0.0.8",
version: "0.0.9",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
key: "shopify-create-product-variant",
name: "Create Product Variant",
description: "Create a new product variant. [See the documentation](https://shopify.dev/docs/api/admin-graphql/latest/mutations/productVariantsBulkCreate)",
version: "0.0.15",
version: "0.0.16",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "shopify-create-product",
name: "Create Product",
description: "Create a new product. [See the documentation](https://shopify.dev/docs/api/admin-graphql/latest/mutations/productCreate)",
version: "0.0.14",
version: "0.0.15",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
key: "shopify-create-smart-collection",
name: "Create Smart Collection",
description: "Creates a smart collection. You can fill in any number of rules by selecting more than one option in each prop.[See the documentation](https://shopify.dev/docs/api/admin-graphql/latest/mutations/collectionCreate)",
version: "0.0.14",
version: "0.0.15",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "shopify-delete-article",
name: "Delete Article",
description: "Delete an existing blog article. [See the documentation](https://shopify.dev/docs/api/admin-graphql/latest/mutations/articleDelete)",
version: "0.0.8",
version: "0.0.9",
annotations: {
destructiveHint: true,
openWorldHint: true,
Expand Down
2 changes: 1 addition & 1 deletion components/shopify/actions/delete-blog/delete-blog.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "shopify-delete-blog",
name: "Delete Blog",
description: "Delete an existing blog. [See the documentation](https://shopify.dev/docs/api/admin-graphql/latest/mutations/blogDelete)",
version: "0.0.8",
version: "0.0.9",
annotations: {
destructiveHint: true,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "shopify-delete-metafield",
name: "Delete Metafield",
description: "Deletes a metafield belonging to a resource. [See the documentation](https://shopify.dev/docs/api/admin-graphql/latest/mutations/metafieldsDelete)",
version: "0.0.10",
version: "0.0.11",
annotations: {
destructiveHint: true,
openWorldHint: true,
Expand Down
2 changes: 1 addition & 1 deletion components/shopify/actions/delete-page/delete-page.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "shopify-delete-page",
name: "Delete Page",
description: "Delete an existing page. [See the documentation](https://shopify.dev/docs/api/admin-graphql/latest/mutations/pageDelete)",
version: "0.0.8",
version: "0.0.9",
annotations: {
destructiveHint: true,
openWorldHint: true,
Expand Down
2 changes: 1 addition & 1 deletion components/shopify/actions/get-articles/get-articles.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "shopify-get-articles",
name: "Get Articles",
description: "Retrieve a list of all articles from a blog. [See the documentation](https://shopify.dev/docs/api/admin-graphql/latest/queries/articles)",
version: "0.0.8",
version: "0.0.9",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
import shopify from "../../shopify.app.mjs";

export default {
key: "shopify-get-assigned-fulfillment-orders",
name: "Get Assigned Fulfillment Orders",
description: "Retrieve a list of fulfillment orders assigned to a merchant location. [See the documentation](https://shopify.dev/docs/api/admin-graphql/latest/queries/assignedfulfillmentorders)",
version: "0.0.3",
annotations: {
destructiveHint: false,
openWorldHint: true,
readOnlyHint: true,
},
type: "action",
props: {
shopify,
// eslint-disable-next-line pipedream/props-label, pipedream/props-description
info: {
type: "alert",
alertType: "info",
content: "Please verify that the Shopify shop has fulfillment services properly defined and that your API credentials have been granted this access scope. [See the documentation](https://shopify.dev/docs/admin-api/access-scopes)",
},
sortKey: {
propDefinition: [
shopify,
"sortKey",
],
description: "The key to sort the results by. Options: `ID`",
},
maxResults: {
propDefinition: [
shopify,
"maxResults",
],
},
reverse: {
propDefinition: [
shopify,
"reverse",
],
},
},
async run({ $ }) {
const fulfillmentOrders = await this.shopify.getPaginated({
resourceFn: this.shopify.listAssignedFulfillmentOrders,
resourceKeys: [
"assignedFulfillmentOrders",
],
variables: {
sortKey: this.sortKey,
reverse: this.reverse,
},
max: this.maxResults,
});
$.export("$summary", `Successfully retrieved ${fulfillmentOrders.length} fulfillment order${fulfillmentOrders.length === 1
? ""
: "s"}`);
return fulfillmentOrders;
},
};
36 changes: 36 additions & 0 deletions components/shopify/actions/get-customer/get-customer.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import shopify from "../../shopify.app.mjs";

export default {
key: "shopify-get-customer",
name: "Get Customer",
description: "Retrieve a single customer by ID. [See the documentation](https://shopify.dev/docs/api/admin-graphql/latest/queries/customer)",
version: "0.0.1",
annotations: {
destructiveHint: false,
openWorldHint: true,
readOnlyHint: true,
},
type: "action",
props: {
shopify,
// eslint-disable-next-line pipedream/props-label, pipedream/props-description
info: {
type: "alert",
alertType: "info",
content: "Please verify that the Shopify shop has customer data properly defined and that your API credentials have been granted this access scope. [See the documentation](https://shopify.dev/docs/apps/launch/protected-customer-data)",
},
customerId: {
propDefinition: [
shopify,
"customerId",
],
},
},
async run({ $ }) {
const { customer } = await this.shopify.getCustomer({
id: this.customerId,
});
$.export("$summary", `Successfully retrieved customer \`${customer.email || customer.id}\``);
return customer;
},
};
67 changes: 67 additions & 0 deletions components/shopify/actions/get-customers/get-customers.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
import shopify from "../../shopify.app.mjs";

export default {
key: "shopify-get-customers",
name: "Get Customers",
description: "Retrieve a list of customers. [See the documentation](https://shopify.dev/docs/api/admin-graphql/latest/queries/customers)",
version: "0.0.2",
annotations: {
destructiveHint: false,
openWorldHint: true,
readOnlyHint: true,
},
type: "action",
props: {
shopify,
// This app is not approved to access the Customer object. See https://shopify.dev/docs/apps/launch/protected-customer-data for more details."
// eslint-disable-next-line pipedream/props-label, pipedream/props-description
info: {
type: "alert",
alertType: "info",
content: "Please verify that the Shopify shop has customer data properly defined and that your API credentials have been granted this access scope. [See the documentation](https://shopify.dev/docs/apps/launch/protected-customer-data)",
},
query: {
type: "string",
label: "Query",
description: "The query string to filter customers. Example: `email:[email protected]` or `state:ENABLED`. [See the documentation](https://shopify.dev/docs/api/admin-graphql/latest/queries/customers#argument-customers-query)",
optional: true,
},
sortKey: {
propDefinition: [
shopify,
"sortKey",
],
description: "The key to sort the results by. Options: `CREATED_AT`, `ID`, `NAME`, `ORDERS_COUNT`, `STATE`, `TOTAL_SPENT`, `UPDATED_AT`",
},
maxResults: {
propDefinition: [
shopify,
"maxResults",
],
},
reverse: {
propDefinition: [
shopify,
"reverse",
],
},
},
async run({ $ }) {
const customers = await this.shopify.getPaginated({
resourceFn: this.shopify.listCustomers,
resourceKeys: [
"customers",
],
variables: {
query: this.query,
sortKey: this.sortKey,
reverse: this.reverse,
},
max: this.maxResults,
});
$.export("$summary", `Successfully retrieved ${customers.length} customer${customers.length === 1
? ""
: "s"}`);
return customers;
},
};
36 changes: 36 additions & 0 deletions components/shopify/actions/get-draft-order/get-draft-order.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import shopify from "../../shopify.app.mjs";

export default {
key: "shopify-get-draft-order",
name: "Get Draft Order",
description: "Retrieve a single draft order by ID. [See the documentation](https://shopify.dev/docs/api/admin-graphql/latest/queries/draftorder)",
version: "0.0.1",
annotations: {
destructiveHint: false,
openWorldHint: true,
readOnlyHint: true,
},
type: "action",
props: {
shopify,
// eslint-disable-next-line pipedream/props-label, pipedream/props-description
info: {
type: "alert",
alertType: "info",
content: "Please verify that the Shopify shop has customer data properly defined and that your API credentials have been granted this access scope. [See the documentation](https://shopify.dev/docs/apps/launch/protected-customer-data)",
},
draftOrderId: {
propDefinition: [
shopify,
"draftOrderId",
],
},
},
async run({ $ }) {
const { draftOrder } = await this.shopify.getDraftOrder({
id: this.draftOrderId,
});
$.export("$summary", `Successfully retrieved draft order \`${draftOrder.name || draftOrder.id}\``);
return draftOrder;
},
};
Loading
Loading