Last active
October 19, 2024 08:37
-
-
Save mheland/c4195bb31b6ef9a27f814a96df4e3f37 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "PopUpSmart - Ghost Member", | |
"flow": [ | |
{ | |
"id": 1, | |
"module": "gateway:CustomWebHook", | |
"version": 1, | |
"parameters": { | |
"hook": 909090, | |
"maxResults": 1 | |
}, | |
"mapper": {}, | |
"metadata": { | |
"designer": { | |
"x": 83, | |
"y": -2, | |
"name": "New pop-up member" | |
}, | |
"restore": { | |
"parameters": { | |
"hook": { | |
"data": { | |
"editable": "true" | |
}, | |
"label": "PopUp Smart v1" | |
} | |
} | |
}, | |
"parameters": [ | |
{ | |
"name": "hook", | |
"type": "hook:gateway-webhook", | |
"label": "Webhook", | |
"required": true | |
}, | |
{ | |
"name": "maxResults", | |
"type": "number", | |
"label": "Maximum number of results" | |
} | |
], | |
"interface": [ | |
{ | |
"name": "date", | |
"type": "text" | |
}, | |
{ | |
"name": "sessionId", | |
"type": "text" | |
}, | |
{ | |
"name": "accountId", | |
"type": "number" | |
}, | |
{ | |
"name": "location", | |
"spec": [ | |
{ | |
"name": "ip", | |
"type": "text" | |
}, | |
{ | |
"name": "countryCode", | |
"type": "text" | |
}, | |
{ | |
"name": "country", | |
"type": "text" | |
}, | |
{ | |
"name": "region", | |
"type": "text" | |
}, | |
{ | |
"name": "regionCode", | |
"type": "text" | |
}, | |
{ | |
"name": "city", | |
"type": "text" | |
}, | |
{ | |
"name": "latitude", | |
"type": "text" | |
}, | |
{ | |
"name": "longitude", | |
"type": "text" | |
}, | |
{ | |
"name": "timezone", | |
"type": "text" | |
}, | |
{ | |
"name": "asOrganization", | |
"type": "text" | |
}, | |
{ | |
"name": "postalCode", | |
"type": "text" | |
} | |
], | |
"type": "collection" | |
}, | |
{ | |
"name": "url", | |
"type": "text" | |
}, | |
{ | |
"name": "page", | |
"type": "text" | |
}, | |
{ | |
"name": "host", | |
"type": "text" | |
}, | |
{ | |
"name": "userAgent", | |
"type": "text" | |
}, | |
{ | |
"name": "device", | |
"type": "text" | |
}, | |
{ | |
"name": "resolution", | |
"type": "text" | |
}, | |
{ | |
"name": "os", | |
"type": "text" | |
}, | |
{ | |
"name": "browser", | |
"type": "text" | |
}, | |
{ | |
"name": "language", | |
"type": "text" | |
}, | |
{ | |
"name": "referrer", | |
"type": "text" | |
}, | |
{ | |
"name": "type", | |
"type": "text" | |
}, | |
{ | |
"name": "campaignId", | |
"type": "number" | |
}, | |
{ | |
"name": "triggerIntegrations", | |
"type": "boolean" | |
}, | |
{ | |
"name": "meta", | |
"spec": [ | |
{ | |
"name": "utm_campaign", | |
"type": "text" | |
}, | |
{ | |
"name": "utm_source", | |
"type": "text" | |
}, | |
{ | |
"name": "utm_medium", | |
"type": "text" | |
}, | |
{ | |
"name": "utm_content", | |
"type": "text" | |
}, | |
{ | |
"name": "utm_term", | |
"type": "text" | |
} | |
], | |
"type": "collection" | |
}, | |
{ | |
"name": "formData", | |
"spec": [ | |
{ | |
"name": "email_input_B941K", | |
"type": "text" | |
} | |
], | |
"type": "collection" | |
}, | |
{ | |
"name": "sourceIp", | |
"type": "text" | |
} | |
] | |
} | |
}, | |
{ | |
"id": 7, | |
"module": "ghost:listMembers", | |
"version": 1, | |
"parameters": { | |
"__IMTCONN__": 909090 | |
}, | |
"mapper": { | |
"filter": [ | |
[ | |
{ | |
"a": "text::members.email", | |
"b": "{{1.formData.email_input_B941K}}", | |
"o": ":" | |
} | |
] | |
] | |
}, | |
"metadata": { | |
"designer": { | |
"x": 427, | |
"y": -3, | |
"name": "Check if existing" | |
}, | |
"restore": { | |
"parameters": { | |
"__IMTCONN__": { | |
"data": { | |
"scoped": "true", | |
"connection": "ghost" | |
}, | |
"label": "Ghost site" | |
} | |
} | |
}, | |
"parameters": [ | |
{ | |
"name": "__IMTCONN__", | |
"type": "account:ghost", | |
"label": "Connection", | |
"required": true | |
} | |
], | |
"expect": [ | |
{ | |
"name": "filter", | |
"type": "filter", | |
"label": "Criteria", | |
"options": { | |
"store": [ | |
{ | |
"label": "ID (Text)", | |
"value": "text::members.id" | |
}, | |
{ | |
"label": "UUID (Text)", | |
"value": "text::members.uuid" | |
}, | |
{ | |
"label": "Name (Text)", | |
"value": "text::members.name" | |
}, | |
{ | |
"label": "Email (Text)", | |
"value": "text::members.email" | |
}, | |
{ | |
"label": "Note (Text)", | |
"value": "text::members.note" | |
}, | |
{ | |
"label": "Subscribed (Boolean)", | |
"value": "bool::members.subscribed" | |
}, | |
{ | |
"label": "Created at (Date)", | |
"value": "date::members.created_at" | |
}, | |
{ | |
"label": "Updated at (Date)", | |
"value": "date::members.updated_at" | |
} | |
], | |
"operators": [ | |
{ | |
"label": "Operators", | |
"options": [ | |
{ | |
"label": "is", | |
"value": ":" | |
}, | |
{ | |
"label": "is not", | |
"value": ":-" | |
}, | |
{ | |
"label": "greater than", | |
"value": ":>" | |
}, | |
{ | |
"label": "greater than or equals", | |
"value": ":>=" | |
}, | |
{ | |
"label": "less than", | |
"value": ":<" | |
}, | |
{ | |
"label": "less than or equals", | |
"value": ":<=" | |
} | |
] | |
} | |
] | |
} | |
}, | |
{ | |
"name": "limit", | |
"type": "uinteger", | |
"label": "Limit" | |
} | |
], | |
"interface": [ | |
{ | |
"name": "__IMTLENGTH__", | |
"type": "uinteger", | |
"label": "Total number of bundles" | |
}, | |
{ | |
"name": "__IMTINDEX__", | |
"type": "uinteger", | |
"label": "Bundle order position" | |
}, | |
{ | |
"name": "id", | |
"type": "text", | |
"label": "Member ID" | |
}, | |
{ | |
"name": "uuid", | |
"type": "text", | |
"label": "UUID" | |
}, | |
{ | |
"name": "email", | |
"type": "text", | |
"label": "Email" | |
}, | |
{ | |
"name": "name", | |
"type": "text", | |
"label": "Name" | |
}, | |
{ | |
"name": "note", | |
"type": "text", | |
"label": "Note" | |
}, | |
{ | |
"name": "subscribed", | |
"type": "boolean", | |
"label": "Subscribed" | |
}, | |
{ | |
"name": "geolocation", | |
"type": "text", | |
"label": "Geolocation" | |
}, | |
{ | |
"name": "labels", | |
"spec": [ | |
{ | |
"name": "id", | |
"type": "text", | |
"label": "ID" | |
}, | |
{ | |
"name": "name", | |
"type": "text", | |
"label": "Name" | |
}, | |
{ | |
"name": "slug", | |
"type": "text", | |
"label": "Slug" | |
}, | |
{ | |
"name": "created_at", | |
"type": "date", | |
"label": "Created at" | |
}, | |
{ | |
"name": "updated_at", | |
"type": "date", | |
"label": "Updated at" | |
} | |
], | |
"type": "array", | |
"label": "Labels" | |
}, | |
{ | |
"name": "subscriptions", | |
"spec": [], | |
"type": "array", | |
"label": "Subscriptions" | |
}, | |
{ | |
"name": "avatar_image", | |
"type": "text", | |
"label": "Avatar Image URL" | |
}, | |
{ | |
"name": "stripe", | |
"spec": [ | |
{ | |
"name": "subscriptions", | |
"type": "array", | |
"label": "Subscriptions" | |
} | |
], | |
"type": "collection", | |
"label": "Stripe" | |
}, | |
{ | |
"name": "comped", | |
"type": "boolean", | |
"label": "Comped" | |
}, | |
{ | |
"name": "email_count", | |
"type": "number", | |
"label": "Email Count" | |
}, | |
{ | |
"name": "email_opened_count", | |
"type": "number", | |
"label": "Email Opened Count" | |
}, | |
{ | |
"name": "email_opened_rate", | |
"type": "number", | |
"label": "Email Opened Rate" | |
}, | |
{ | |
"name": "status", | |
"type": "text", | |
"label": "Status" | |
}, | |
{ | |
"name": "last_seen_at", | |
"type": "date", | |
"label": "Last Seen at" | |
}, | |
{ | |
"name": "newsletters", | |
"spec": [ | |
{ | |
"name": "id", | |
"type": "text", | |
"label": "ID" | |
}, | |
{ | |
"name": "uuid", | |
"type": "uuid", | |
"label": "UUID" | |
}, | |
{ | |
"name": "name", | |
"type": "text", | |
"label": "Name" | |
}, | |
{ | |
"name": "description", | |
"type": "text", | |
"label": "Description" | |
}, | |
{ | |
"name": "slug", | |
"type": "text", | |
"label": "Slug" | |
}, | |
{ | |
"name": "sender_name", | |
"type": "text", | |
"label": "Sender Name" | |
}, | |
{ | |
"name": "sender_email", | |
"type": "email", | |
"label": "Sender Email" | |
}, | |
{ | |
"name": "sender_reply_to", | |
"type": "text", | |
"label": "Sender Reply to" | |
}, | |
{ | |
"name": "status", | |
"type": "text", | |
"label": "Status" | |
}, | |
{ | |
"name": "visibility", | |
"type": "text", | |
"label": "Visibility" | |
}, | |
{ | |
"name": "subscribe_on_signup", | |
"type": "boolean", | |
"label": "Subscribe on Signup" | |
}, | |
{ | |
"name": "sort_order", | |
"type": "number", | |
"label": "Sort Order" | |
}, | |
{ | |
"name": "header_image", | |
"type": "text", | |
"label": "Header Image" | |
}, | |
{ | |
"name": "show_header_icon", | |
"type": "boolean", | |
"label": "Show Header Icon" | |
}, | |
{ | |
"name": "show_header_title", | |
"type": "boolean", | |
"label": "Show Header Title" | |
}, | |
{ | |
"name": "title_font_category", | |
"type": "text", | |
"label": "Title Font Category" | |
}, | |
{ | |
"name": "title_alignment", | |
"type": "text", | |
"label": "Title Alignment" | |
}, | |
{ | |
"name": "show_feature_image", | |
"type": "boolean", | |
"label": "Show Feature Image" | |
}, | |
{ | |
"name": "body_font_category", | |
"type": "text", | |
"label": "Body Font Category" | |
}, | |
{ | |
"name": "footer_content", | |
"type": "text", | |
"label": "Footer Content" | |
}, | |
{ | |
"name": "show_badge", | |
"type": "boolean", | |
"label": "Show Badge" | |
}, | |
{ | |
"name": "show_header_name", | |
"type": "boolean", | |
"label": "Show Header Name" | |
}, | |
{ | |
"name": "created_at", | |
"type": "date", | |
"label": "Created at" | |
}, | |
{ | |
"name": "updated_at", | |
"type": "date", | |
"label": "Updated at" | |
} | |
], | |
"type": "array", | |
"label": "Newsletters" | |
}, | |
{ | |
"name": "created_at", | |
"type": "date", | |
"label": "Created at" | |
}, | |
{ | |
"name": "updated_at", | |
"type": "date", | |
"label": "Updated at" | |
} | |
] | |
} | |
}, | |
{ | |
"id": 2, | |
"module": "ghost:createMember", | |
"version": 1, | |
"parameters": { | |
"__IMTCONN__": 909090 | |
}, | |
"filter": { | |
"name": "Not registered", | |
"conditions": [ | |
[ | |
{ | |
"a": "{{7.id}}", | |
"o": "notexist" | |
} | |
] | |
] | |
}, | |
"mapper": { | |
"name": "Member", | |
"email": "{{1.formData.email_input_B941K}}", | |
"note": "PopUp Smart" | |
}, | |
"metadata": { | |
"designer": { | |
"x": 809, | |
"y": -7, | |
"name": "Create new member" | |
}, | |
"restore": { | |
"parameters": { | |
"__IMTCONN__": { | |
"label": "Ghost site", | |
"data": { | |
"scoped": "true", | |
"connection": "ghost" | |
} | |
} | |
}, | |
"expect": { | |
"subscribed": { | |
"mode": "chose" | |
} | |
} | |
}, | |
"parameters": [ | |
{ | |
"name": "__IMTCONN__", | |
"type": "account:ghost", | |
"label": "Connection", | |
"required": true | |
} | |
], | |
"expect": [ | |
{ | |
"name": "name", | |
"type": "text", | |
"label": "Name", | |
"required": true | |
}, | |
{ | |
"name": "email", | |
"type": "email", | |
"label": "Email", | |
"required": true | |
}, | |
{ | |
"name": "note", | |
"type": "text", | |
"label": "Note" | |
}, | |
{ | |
"name": "subscribed", | |
"type": "boolean", | |
"label": "Subscribed to newsletter" | |
} | |
], | |
"interface": [ | |
{ | |
"name": "id", | |
"type": "text", | |
"label": "Member ID" | |
}, | |
{ | |
"name": "uuid", | |
"type": "text", | |
"label": "UUID" | |
}, | |
{ | |
"name": "email", | |
"type": "text", | |
"label": "Email" | |
}, | |
{ | |
"name": "name", | |
"type": "text", | |
"label": "Name" | |
}, | |
{ | |
"name": "note", | |
"type": "text", | |
"label": "Note" | |
}, | |
{ | |
"name": "subscribed", | |
"type": "boolean", | |
"label": "Subscribed" | |
}, | |
{ | |
"name": "geolocation", | |
"type": "text", | |
"label": "Geolocation" | |
}, | |
{ | |
"name": "labels", | |
"spec": [ | |
{ | |
"name": "id", | |
"type": "text", | |
"label": "ID" | |
}, | |
{ | |
"name": "name", | |
"type": "text", | |
"label": "Name" | |
}, | |
{ | |
"name": "slug", | |
"type": "text", | |
"label": "Slug" | |
}, | |
{ | |
"name": "created_at", | |
"type": "date", | |
"label": "Created at" | |
}, | |
{ | |
"name": "updated_at", | |
"type": "date", | |
"label": "Updated at" | |
} | |
], | |
"type": "array", | |
"label": "Labels" | |
}, | |
{ | |
"name": "subscriptions", | |
"spec": [], | |
"type": "array", | |
"label": "Subscriptions" | |
}, | |
{ | |
"name": "avatar_image", | |
"type": "text", | |
"label": "Avatar Image URL" | |
}, | |
{ | |
"name": "stripe", | |
"spec": [ | |
{ | |
"name": "subscriptions", | |
"type": "array", | |
"label": "Subscriptions" | |
} | |
], | |
"type": "collection", | |
"label": "Stripe" | |
}, | |
{ | |
"name": "comped", | |
"type": "boolean", | |
"label": "Comped" | |
}, | |
{ | |
"name": "email_count", | |
"type": "number", | |
"label": "Email Count" | |
}, | |
{ | |
"name": "email_opened_count", | |
"type": "number", | |
"label": "Email Opened Count" | |
}, | |
{ | |
"name": "email_opened_rate", | |
"type": "number", | |
"label": "Email Opened Rate" | |
}, | |
{ | |
"name": "status", | |
"type": "text", | |
"label": "Status" | |
}, | |
{ | |
"name": "last_seen_at", | |
"type": "date", | |
"label": "Last Seen at" | |
}, | |
{ | |
"name": "newsletters", | |
"spec": [ | |
{ | |
"name": "id", | |
"type": "text", | |
"label": "ID" | |
}, | |
{ | |
"name": "uuid", | |
"type": "uuid", | |
"label": "UUID" | |
}, | |
{ | |
"name": "name", | |
"type": "text", | |
"label": "Name" | |
}, | |
{ | |
"name": "description", | |
"type": "text", | |
"label": "Description" | |
}, | |
{ | |
"name": "slug", | |
"type": "text", | |
"label": "Slug" | |
}, | |
{ | |
"name": "sender_name", | |
"type": "text", | |
"label": "Sender Name" | |
}, | |
{ | |
"name": "sender_email", | |
"type": "email", | |
"label": "Sender Email" | |
}, | |
{ | |
"name": "sender_reply_to", | |
"type": "text", | |
"label": "Sender Reply to" | |
}, | |
{ | |
"name": "status", | |
"type": "text", | |
"label": "Status" | |
}, | |
{ | |
"name": "visibility", | |
"type": "text", | |
"label": "Visibility" | |
}, | |
{ | |
"name": "subscribe_on_signup", | |
"type": "boolean", | |
"label": "Subscribe on Signup" | |
}, | |
{ | |
"name": "sort_order", | |
"type": "number", | |
"label": "Sort Order" | |
}, | |
{ | |
"name": "header_image", | |
"type": "text", | |
"label": "Header Image" | |
}, | |
{ | |
"name": "show_header_icon", | |
"type": "boolean", | |
"label": "Show Header Icon" | |
}, | |
{ | |
"name": "show_header_title", | |
"type": "boolean", | |
"label": "Show Header Title" | |
}, | |
{ | |
"name": "title_font_category", | |
"type": "text", | |
"label": "Title Font Category" | |
}, | |
{ | |
"name": "title_alignment", | |
"type": "text", | |
"label": "Title Alignment" | |
}, | |
{ | |
"name": "show_feature_image", | |
"type": "boolean", | |
"label": "Show Feature Image" | |
}, | |
{ | |
"name": "body_font_category", | |
"type": "text", | |
"label": "Body Font Category" | |
}, | |
{ | |
"name": "footer_content", | |
"type": "text", | |
"label": "Footer Content" | |
}, | |
{ | |
"name": "show_badge", | |
"type": "boolean", | |
"label": "Show Badge" | |
}, | |
{ | |
"name": "show_header_name", | |
"type": "boolean", | |
"label": "Show Header Name" | |
}, | |
{ | |
"name": "created_at", | |
"type": "date", | |
"label": "Created at" | |
}, | |
{ | |
"name": "updated_at", | |
"type": "date", | |
"label": "Updated at" | |
} | |
], | |
"type": "array", | |
"label": "Newsletters" | |
}, | |
{ | |
"name": "created_at", | |
"type": "date", | |
"label": "Created at" | |
}, | |
{ | |
"name": "updated_at", | |
"type": "date", | |
"label": "Updated at" | |
} | |
] | |
} | |
} | |
], | |
"metadata": { | |
"instant": true, | |
"version": 1, | |
"scenario": { | |
"roundtrips": 1, | |
"maxErrors": 3, | |
"autoCommit": true, | |
"autoCommitTriggerLast": true, | |
"sequential": false, | |
"slots": null, | |
"confidential": false, | |
"dataloss": false, | |
"dlq": true, | |
"freshVariables": false | |
}, | |
"designer": { | |
"orphans": [] | |
}, | |
"zone": "eu2.make.com" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment