Last active
September 20, 2023 01:02
-
-
Save d2kagw/89c2c998d52fcfe803d8fbf58624262c to your computer and use it in GitHub Desktop.
schema_marketing_sms_click.json - Via automated deployment - Visit https://learn.lexer.io for more information.
This file contains hidden or 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
| { | |
| "type": "object", | |
| "properties": { | |
| "records": { | |
| "type": "array", | |
| "items": { | |
| "title": "SMS Click Event", | |
| "type": "object", | |
| "description": "An SMS Click Event object.", | |
| "required": [ | |
| "action_at", | |
| "campaign_id", | |
| "link" | |
| ], | |
| "properties": { | |
| "link": { | |
| "type": "object", | |
| "oneOf": [ | |
| { | |
| "title": "Email Link", | |
| "type": "object", | |
| "properties": { | |
| "email": { | |
| "type": "string", | |
| "format": "email", | |
| "pattern": "(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)", | |
| "example": "[email protected]" | |
| } | |
| } | |
| }, | |
| { | |
| "title": "Email sha256 Link", | |
| "type": "object", | |
| "properties": { | |
| "email_sha256": { | |
| "type": "string", | |
| "description": "Ensure that the email address is lowercase before hashing.", | |
| "example": "39c500..." | |
| } | |
| } | |
| }, | |
| { | |
| "title": "Email md5 Link", | |
| "type": "object", | |
| "required": [ | |
| "email_md5" | |
| ], | |
| "properties": { | |
| "email_md5": { | |
| "type": "string", | |
| "description": "Ensure that the email address is lowercase before hashing.", | |
| "example": "39c500..." | |
| } | |
| } | |
| }, | |
| { | |
| "title": "Mobile Link", | |
| "type": "object", | |
| "properties": { | |
| "mobile": { | |
| "type": "string", | |
| "description": "Formatted with the international code with no spaces or symbols.", | |
| "example": "61400000000" | |
| } | |
| } | |
| }, | |
| { | |
| "title": "Customer ID Link", | |
| "type": "object", | |
| "required": [ | |
| "customer_id" | |
| ], | |
| "properties": { | |
| "customer_id": { | |
| "type": "string", | |
| "description": "A unique identifier for a customer.", | |
| "example": 123456789 | |
| }, | |
| "system_name": { | |
| "type": "string", | |
| "description": "An optional name for the system of origin.", | |
| "example": "point_of_sale" | |
| } | |
| } | |
| }, | |
| { | |
| "title": "External Link", | |
| "type": "object", | |
| "required": [ | |
| "external_id" | |
| ], | |
| "properties": { | |
| "external_id": { | |
| "type": "string", | |
| "description": "A unique identifier for a profile.", | |
| "example": 123456789 | |
| }, | |
| "system_name": { | |
| "type": "string", | |
| "description": "An optional name for the system of origin.", | |
| "example": "point_of_sale" | |
| } | |
| } | |
| }, | |
| { | |
| "title": "Legacy Customer Link", | |
| "type": "object", | |
| "required": [ | |
| "link_type", | |
| "link_value" | |
| ], | |
| "properties": { | |
| "link_type": { | |
| "title": "Link Type", | |
| "type": "string", | |
| "enum": [ | |
| "email", | |
| "email_sha256", | |
| "customer_id", | |
| "mobile", | |
| "external_id", | |
| "email_md5" | |
| ], | |
| "example": "email" | |
| }, | |
| "link_value": { | |
| "title": "Link Value", | |
| "type": "string", | |
| "minLength": 1, | |
| "example": "[email protected]" | |
| }, | |
| "id_type": { | |
| "title": "External ID Type", | |
| "type": "string", | |
| "default": "default" | |
| } | |
| } | |
| } | |
| ] | |
| }, | |
| "action_at": { | |
| "title": "Action At", | |
| "type": "string", | |
| "format": "date-time" | |
| }, | |
| "campaign_id": { | |
| "title": "Campaign Identifier or Name", | |
| "type": "string", | |
| "example": "Black friday Menswear Teaser Aug 2020" | |
| }, | |
| "list": { | |
| "title": "List", | |
| "type": "object", | |
| "properties": { | |
| "id": { | |
| "title": "ID", | |
| "type": "string", | |
| "example": "7bff7a..." | |
| }, | |
| "name": { | |
| "title": "List Name", | |
| "type": "string", | |
| "example": "All Customers List" | |
| } | |
| } | |
| }, | |
| "from": { | |
| "title": "Sender Details", | |
| "type": "object", | |
| "properties": { | |
| "name": { | |
| "type": "string", | |
| "example": "My Brand" | |
| }, | |
| "number": { | |
| "type": "string", | |
| "example": "61400000000" | |
| } | |
| } | |
| }, | |
| "to": { | |
| "title": "Recipient Details", | |
| "type": "object", | |
| "properties": { | |
| "name": { | |
| "type": "string", | |
| "example": "My Brand" | |
| }, | |
| "number": { | |
| "type": "string", | |
| "example": "61400000000" | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "minItems": 1, | |
| "maxItems": 100 | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment