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
2 changes: 1 addition & 1 deletion components/_21risk/_21risk.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/_2chat/_2chat.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/adobe_photoshop/adobe_photoshop.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/airship/airship.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/ayrshare/ayrshare.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/d2l_brightspace/d2l_brightspace.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/database/database.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/dropboard/dropboard.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/eyepop_ai/eyepop_ai.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/fatture_in_cloud/fatture_in_cloud.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/fillout/fillout.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/gloria_ai/gloria_ai.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/google_play/google_play.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/heyzine/heyzine.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/invision_community/invision_community.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/kommo/kommo.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/minio/minio.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/modelry/modelry.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/noor/noor.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/otter_waiver/otter_waiver.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/power_automate/power_automate.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/railsr/railsr.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/shopify_developer_app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/shopify_developer_app",
"version": "0.2.5",
"version": "0.3.0",
"description": "Pipedream Shopify (Developer App) Components",
"main": "shopify_developer_app.app.mjs",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions components/shopify_developer_app/sources/common/webhook.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ export default {
metafieldNamespaces: {
type: "string[]",
label: "Metafield Namespaces",
description: "Array of namespaces for any metafields that should be included with each webhook",
description: "Array of namespaces for any metafields that should be included with each webhook. Metafield definitions can be found in your store's Settings -> Custom Data. Select a metafield to view its namespace under \"Namespace and key\". For example, if the value is `custom.test_metafield`, the namespace is `custom`.",
optional: true,
},
privateMetafieldNamespaces: {
type: "string[]",
label: "Private Metafield Namespaces",
description: "Array of namespaces for any private metafields that should be included with each webhook",
description: "Array of namespaces for any private metafields that should be included with each webhook. Metafield definitions can be found in your store's Settings -> Custom Data. Select a metafield to view its namespace under \"Namespace and key\". For example, if the value is `custom.test_metafield`, the namespace is `custom`.",
optional: true,
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
name: "New Cancelled Order (Instant)",
type: "source",
description: "Emit new event each time a new order is cancelled.",
version: "0.0.2",
version: "0.0.3",
dedupe: "unique",
methods: {
...common.methods,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
name: "New Customer Created (Instant)",
type: "source",
description: "Emit new event for each new customer added to a store.",
version: "0.0.2",
version: "0.0.3",
dedupe: "unique",
methods: {
...common.methods,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
name: "New Draft Order (Instant)",
type: "source",
description: "Emit new event for each new draft order submitted to a store.",
version: "0.0.2",
version: "0.0.3",
dedupe: "unique",
methods: {
...common.methods,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
name: "New Event Emitted (Instant)",
type: "source",
description: "Emit new event for each new Shopify event.",
version: "0.0.2",
version: "0.0.3",
dedupe: "unique",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
name: "New Order Created (Instant)",
type: "source",
description: "Emit new event for each new order submitted to a store.",
version: "0.0.2",
version: "0.0.3",
dedupe: "unique",
methods: {
...common.methods,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
name: "New Paid Order (Instant)",
type: "source",
description: "Emit new event each time a new order is paid.",
version: "0.0.2",
version: "0.0.3",
dedupe: "unique",
methods: {
...common.methods,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
name: "New Product Created (Instant)",
type: "source",
description: "Emit new event for each product added to a store.",
version: "0.0.2",
version: "0.0.3",
dedupe: "unique",
methods: {
...common.methods,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
import common from "../common/webhook.mjs";
import constants from "../common/constants.mjs";

export default {
...common,
key: "shopify_developer_app-new-product-updated",
name: "New Product Updated (Instant)",
description: "Emit new event for each product updated in a store.",
version: "0.0.1",
type: "source",
dedupe: "unique",
props: {
...common.props,
productType: {
type: "string",
label: "Product Type",
description: "Filter results by product type",
optional: true,
},
tags: {
type: "string[]",
label: "Tags",
description: "Filter results by product tag(s)",
optional: true,
},
},
methods: {
...common.methods,
getTopic() {
return constants.EVENT_TOPIC.PRODUCTS_UPDATE;
},
isRelevant(resource) {
let relevant = true;
if (this.productType && resource.product_type !== this.productType) {
relevant = false;
}
if (this.tags?.length) {
this.tags.forEach((tag) => {
if (!resource.tags?.includes(tag)) {
relevant = false;
}
});
}
return relevant;
},
generateMeta(resource) {
const ts = Date.parse(resource.updated_at);
return {
id: `${resource.id}-${ts}`,
summary: `Product Updated ${resource.id}`,
ts,
};
},
},
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
export default {
"admin_graphql_api_id": "gid://shopify/Product/8416570474776",
"body_html": null,
"created_at": "2023-06-30T13:38:03-04:00",
"handle": "best-product-ever",
"id": 8416570474776,
"product_type": "",
"published_at": "2023-06-30T13:38:03-04:00",
"template_suffix": null,
"title": "product",
"updated_at": "2024-06-18T14:37:58-04:00",
"vendor": "Testing",
"status": "active",
"published_scope": "web",
"tags": "abc, def",
"variants": [
{
"admin_graphql_api_id": "gid://shopify/ProductVariant/45612961333528",
"barcode": null,
"compare_at_price": null,
"created_at": "2023-06-30T13:38:03-04:00",
"fulfillment_service": "manual",
"id": 45612961333528,
"inventory_management": null,
"inventory_policy": "deny",
"position": 1,
"price": "0.00",
"product_id": 8416570474776,
"sku": "",
"taxable": true,
"title": "Default Title",
"updated_at": "2023-10-27T10:08:17-04:00",
"option1": "Default Title",
"option2": null,
"option3": null,
"grams": 0,
"image_id": null,
"weight": 0,
"weight_unit": "lb",
"inventory_item_id": 47661178487064,
"inventory_quantity": 0,
"old_inventory_quantity": 0,
"requires_shipping": true
},
],
"options": [
{
"name": "Title",
"id": 10664239726872,
"product_id": 8416570474776,
"position": 1,
"values": [
"Default Title",
]
}
],
"images": [],
"image": null,
"variant_ids": [
{
"id": 45612961333528
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
name: "New Shipment (Instant)",
type: "source",
description: "Emit new event for each new fulfillment event for a store.",
version: "0.0.2",
version: "0.0.3",
dedupe: "unique",
methods: {
...common.methods,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
name: "New Updated Customer (Instant)",
type: "source",
description: "Emit new event each time a customer's information is updated.",
version: "0.0.2",
version: "0.0.3",
dedupe: "unique",
methods: {
...common.methods,
Expand Down
Loading