Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update existing templates to Delay v2 #484

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions gorgias/ticket/send_gift_card_when_order_delayed/mesa.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"schema": 2,
"trigger_type": "output",
"type": "delay",
"version": "v1",
"version": "v2",
"name": "Delay",
"key": "delay",
"metadata": {
Expand All @@ -63,7 +63,7 @@
"metadata": {
"entity_wrapper": "body",
"path": {
"id": "{{delay.id}}"
"id": "{{gorgias.id}}"
}
},
"local_fields": [],
Expand Down
4 changes: 2 additions & 2 deletions shopify/draft_order/remove_after_thirty_days/mesa.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"schema": 2,
"trigger_type": "output",
"type": "delay",
"version": "v1",
"version": "v2",
"name": "Delay for 30 days",
"key": "delay",
"metadata": {
Expand All @@ -53,7 +53,7 @@
"name": "Delete Draft Order",
"key": "shopify_draft_order_1",
"metadata": {
"draft_order_id": "{{delay.id}}"
"draft_order_id": "{{shopify_draft_order.id}}"
},
"local_fields": [],
"on_error": "ignore",
Expand Down
4 changes: 2 additions & 2 deletions shopify/order/lock_editing_with_tags/mesa.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"schema": 2,
"trigger_type": "output",
"type": "delay",
"version": "v1",
"version": "v2",
"name": "Delay",
"key": "delay",
"metadata": {
Expand All @@ -87,7 +87,7 @@
"operation_id": "get_orders_order_id",
"metadata": {
"api_endpoint": "get admin/orders/{{order_id}}.json",
"order_id": "{{delay.id}}"
"order_id": "{{shopify_3.id}}"
},
"local_fields": [],
"on_error": "default",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
{
"trigger_type": "output",
"type": "delay",
"version": "v1",
"version": "v2",
"entity": "",
"action": "",
"name": "Delay ",
Expand Down
10 changes: 5 additions & 5 deletions shopify/order/send_gift_card_for_orders_over_100/mesa.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"schema": 2,
"trigger_type": "output",
"type": "delay",
"version": "v1",
"version": "v2",
"name": "Delay",
"key": "delay",
"metadata": {
Expand All @@ -51,7 +51,7 @@
"name": "Filter",
"key": "filter",
"metadata": {
"a": "{{delay.total_line_items_price}}",
"a": "{{shopify.total_line_items_price}}",
"comparison": "greater than equal",
"b": "100"
},
Expand All @@ -69,9 +69,9 @@
"key": "govalo",
"metadata": {
"body": {
"firstName": "{{delay.customer.first_name}}",
"lastName": "{{delay.customer.last_name}}",
"email": "{{delay.email}}",
"firstName": "{{shopify.customer.first_name}}",
"lastName": "{{shopify.customer.last_name}}",
"email": "{{shopify.email}}",
"note": "Thank you for being an awesome customer!",
"value": "20",
"eventType": "giftcard"
Expand Down
16 changes: 8 additions & 8 deletions shopify/order/send_thanks_io_postcard/mesa.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"schema": 2,
"trigger_type": "output",
"type": "delay",
"version": "v1",
"version": "v2",
"name": "Delay",
"key": "delay",
"metadata": {
Expand All @@ -55,7 +55,7 @@
"body": {
"front_image_url": "https://blog.theshoppad.com/wp-content/uploads/Shipping_Handling_Profitability-300x169.png",
"handwriting_style": "1",
"message": "Dear {{delay.customer.first_name}},\n\nThank you for your recent purchase on {{context.shop.name}}. Your business means the world to us and we hope you are enjoying your {{delay.line_items[0].title}}!\n\nPlease reach out if you have any questions about your order. We look forward to doing business with you again soon.\n- The {{context.shop.name}} Team",
"message": "Dear {{shopify_order.customer.first_name}},\n\nThank you for your recent purchase on {{context.shop.name}}. Your business means the world to us and we hope you are enjoying your {{shopify_order.line_items[0].title}}!\n\nPlease reach out if you have any questions about your order. We look forward to doing business with you again soon.\n- The {{context.shop.name}} Team",
"return_name": "{{context.shop.name}}",
"return_address": "{{context.shop.address1}}",
"return_address2": "{{context.shop.address2}}",
Expand All @@ -64,12 +64,12 @@
"return_postal_code": "{{context.shop.zip}}",
"recipients": [
{
"name": "{{delay.shipping_address.first_name}} {{delay.shipping_address.last_name}}",
"address": "{{delay.shipping_address.address1}}",
"city": "{{delay.shipping_address.city}}",
"province": "{{delay.shipping_address.province}}",
"postal_code": "{{delay.shipping_address.zip}}",
"country": "{{delay.shipping_address.country}}"
"name": "{{shopify_order.shipping_address.first_name}} {{shopify_order.shipping_address.last_name}}",
"address": "{{shopify_order.shipping_address.address1}}",
"city": "{{shopify_order.shipping_address.city}}",
"province": "{{shopify_order.shipping_address.province}}",
"postal_code": "{{shopify_order.shipping_address.zip}}",
"country": "{{shopify_order.shipping_address.country}}"
}
]
}
Expand Down
4 changes: 2 additions & 2 deletions shopify/order/send_to_delighted_nps_survey/mesa.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"schema": 2,
"trigger_type": "output",
"type": "delay",
"version": "v1",
"version": "v2",
"name": "Delay",
"key": "delay",
"metadata": {
Expand All @@ -53,7 +53,7 @@
"mapping": [
{
"destination": "email",
"source": "{{delay.email}}"
"source": "{{shopify_order.email}}"
}
]
},
Expand Down
4 changes: 2 additions & 2 deletions shopify/product/add_and_remove_tags_on_new_products/mesa.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"schema": 2,
"trigger_type": "output",
"type": "delay",
"version": "v1",
"version": "v2",
"name": "Delay",
"key": "delay",
"metadata": {
Expand All @@ -86,7 +86,7 @@
"operation_id": "delete_mesa_products_product_id_tag",
"metadata": {
"api_endpoint": "delete mesa\/products\/{{product_id}}\/tag.json",
"product_id": "{{delay.id}}",
"product_id": "{{shopify_2.id}}",
"body": {
"tag": "{{ template | label: 'What tag will be removed from the product?', description: 'This needs to be the same as the tag that is added.', default: 'New Arrival', tokens: false }}"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"schema": 4,
"trigger_type": "output",
"type": "loop",
"version": "v1",
"version": "v2",
"name": "Loop",
"key": "loop",
"metadata": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"schema": 2,
"trigger_type": "output",
"type": "delay",
"version": "v1",
"version": "v2",
"name": "Delay",
"key": "delay",
"metadata": {
Expand All @@ -63,9 +63,9 @@
"name": "Email",
"key": "email",
"metadata": {
"to": "{{delay.customerEmail}}",
"subject": "Hi {{delay.author}} - is there something we can do better?",
"message": "Hi {{delay.author}}\n\nWe noticed you left us a review recently - thank you! Is there anything we can do to make things better?\n\nThanks!",
"to": "{{stampedio_review.customerEmail}}",
"subject": "Hi {{stampedio_review.author}} - is there something we can do better?",
"message": "Hi {{stampedio_review.author}}\n\nWe noticed you left us a review recently - thank you! Is there anything we can do to make things better?\n\nThanks!",
"test_email_override": "[email protected]"
},
"local_fields": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"schema": 2,
"trigger_type": "output",
"type": "delay",
"version": "v1",
"version": "v2",
"name": "Delay",
"key": "delay",
"metadata": {
Expand All @@ -49,7 +49,7 @@
"operation_id": "get_orders_order_id",
"metadata": {
"api_endpoint": "get admin/orders/{{order_id}}.json",
"order_id": "{{delay.id}}"
"order_id": "{{shopify_order.id}}"
},
"local_fields": [],
"on_error": "default",
Expand Down
4 changes: 2 additions & 2 deletions tracktor/fulfillment/delay_in_transit_email/mesa.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
{
"trigger_type": "output",
"type": "delay",
"version": "v1",
"version": "v2",
"name": "Delay",
"key": "delay",
"metadata": {
Expand All @@ -42,7 +42,7 @@
"name": "Retrieve Fulfillment",
"key": "tracktor_fulfillment",
"metadata": {
"fulfillment_id": "{{delay.fulfillment_id}}"
"fulfillment_id": "{{tracktor_fulfillment_status.fulfillment_id}}"
}
},
{
Expand Down
4 changes: 2 additions & 2 deletions tracktor/fulfillment/delay_in_transit_sms/mesa.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"schema": 2,
"trigger_type": "output",
"type": "delay",
"version": "v1",
"version": "v2",
"name": "Delay",
"key": "delay",
"metadata": {
Expand All @@ -44,7 +44,7 @@
"name": "Retrieve Fulfillment",
"key": "tracktor_fulfillment",
"metadata": {
"fulfillment_id": "{{delay.fulfillment_id}}"
"fulfillment_id": "{{tracktor_fulfillment_status.fulfillment_id}}"
},
"local_fields": [],
"weight": 1
Expand Down
4 changes: 2 additions & 2 deletions tracktor/fulfillment/delay_in_transit_twilio_sms/mesa.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"schema": 2,
"trigger_type": "output",
"type": "delay",
"version": "v1",
"version": "v2",
"name": "Delay",
"key": "delay",
"metadata": {
Expand All @@ -49,7 +49,7 @@
"operation_id": "RetrievethetrackingstatusofaFulfillment",
"metadata": {
"api_endpoint": "get /fulfillments/{fulfillment_id}.json",
"fulfillment_id": "{{delay.fulfillment_id}}"
"fulfillment_id": "{{tracktor_fulfillment.fulfillment_id}}"
},
"local_fields": [],
"on_error": "default",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"schema": 2,
"trigger_type": "output",
"type": "delay",
"version": "v1",
"version": "v2",
"name": "Delay",
"key": "delay",
"metadata": {
Expand All @@ -49,7 +49,7 @@
"operation_id": "RetrievethetrackingstatusofaFulfillment",
"metadata": {
"api_endpoint": "get /fulfillments/{fulfillment_id}.json",
"fulfillment_id": "{{delay.fulfillment_id}}"
"fulfillment_id": "{{tracktor_fulfillment.fulfillment_id}}"
},
"local_fields": [],
"on_error": "default",
Expand Down
4 changes: 2 additions & 2 deletions tracktor/fulfillment/send_to_delighted_nps_survey/mesa.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"schema": 2,
"trigger_type": "output",
"type": "delay",
"version": "v1",
"version": "v2",
"name": "Delay",
"key": "delay",
"metadata": {
Expand All @@ -66,7 +66,7 @@
"operation_id": "get_orders_order_id",
"metadata": {
"api_endpoint": "get admin/orders/{{order_id}}.json",
"order_id": "{{delay.id}}"
"order_id": "{{shopify_order.id}}"
},
"local_fields": [],
"on_error": "default",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"schema": 2,
"trigger_type": "output",
"type": "delay",
"version": "v1",
"version": "v2",
"name": "Delay",
"key": "delay",
"metadata": {
Expand All @@ -67,7 +67,7 @@
"metadata": {
"api_endpoint": "get /v2/{storeHash}/survey/reviews",
"query": {
"search": "{{delay.id}}"
"search": "{{shopify_order.id}}"
}
},
"local_fields": [],
Expand Down Expand Up @@ -99,7 +99,7 @@
"metadata": {
"a": "{{loop.orderIdShopify}}",
"comparison": "equals",
"b": "{{delay.id}}"
"b": "{{shopify_order.id}}"
},
"local_fields": [],
"on_error": "default",
Expand Down
4 changes: 2 additions & 2 deletions tracktor/order/refund_shipping_cost/mesa.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"schema": 2,
"trigger_type": "output",
"type": "delay",
"version": "v1",
"version": "v2",
"name": "Delay 5 Days",
"key": "delay",
"metadata": {
Expand All @@ -78,7 +78,7 @@
"name": "Retrieve Order from Delay",
"key": "tracktor_order_1",
"metadata": {
"order_id": "{{delay.id}}"
"order_id": "{{shopify_order.id}}"
},
"local_fields": [],
"weight": 3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"trigger_type": "output",
"type": "delay",
"name": "Delay",
"version": "v1",
"version": "v2",
"key": "delay",
"metadata": [],
"on_error": "default",
Expand Down
Loading