-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #458 from jfait/Issue-399-newDirectMarketingSubscr…
…iptionSchema Issue#399 - Implement a communications subscription Campaign extension.
- Loading branch information
Showing
9 changed files
with
198 additions
and
433 deletions.
There are no files selected for viewing
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
6 changes: 6 additions & 0 deletions
6
extensions/adobe/experience/campaign/notificationsubscription.example.1.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"xdm:topicID": "40ac9bf9-721d-44ac-8cf3-fb04c089f3bf", | ||
"xdm:type": "Campaign/SubscriptionList", | ||
"xdm:subscriptionDate": "2017-09-26T15:52:25+00:00", | ||
"xdm:emailAddress": "johnDoe@adobe.com" | ||
} |
11 changes: 11 additions & 0 deletions
11
extensions/adobe/experience/campaign/notificationsubscription.example.2.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"xdm:topicID": "50ac9bf9-721d-44ac-8cf3-fb04c089f3bf", | ||
"xdm:type": "Campaign/SubscriptionList", | ||
"xdm:subscriptionDate": "2017-02-26T15:52:25+00:00", | ||
"xdm:emailAddress": "johnDoe@adobe.com", | ||
"xdm:unsubscriptionDetails": { | ||
"xdm:unsubscriptionDate": "2017-09-26T15:52:25+00:00", | ||
"xdm:remarkID": "40ac9bf9-721d-44ac-8cf3-fb04c089f3be", | ||
"xdm:remarkText": "Sorry, leave me alone. These are my personal comments" | ||
} | ||
} |
62 changes: 62 additions & 0 deletions
62
extensions/adobe/experience/campaign/notificationsubscription.schema.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
"meta:license": [ | ||
"Copyright 2018 Adobe Systems Incorporated. All rights reserved.", | ||
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license", | ||
"you may not use this file except in compliance with the License. You may obtain a copy", | ||
"of the License at https://creativecommons.org/licenses/by/4.0/" | ||
], | ||
"$id": "https://ns.adobe.com/experience/campaign/notificationsubscription", | ||
"$schema": "http://json-schema.org/draft-06/schema#", | ||
"title": "Notification subscription", | ||
"type": "object", | ||
"meta:extensible": true, | ||
"description": | ||
"Adobe Campaign notification subscriptions allow endusers opt into topics that can be used for communication such as Marketing subscription lists.", | ||
"definitions": { | ||
"notificationSubscription": { | ||
"properties": { | ||
"xdm:topicID": { | ||
"title": "Topic Identifier", | ||
"type": "string", | ||
"description": | ||
"The topic that the enduser has subscribed to and opted into notifications for." | ||
}, | ||
"xdm:type": { | ||
"title": "Subscription type", | ||
"type": "string", | ||
"description": "The type of notification/subscription." | ||
}, | ||
"xdm:subscriptionDate": { | ||
"title": "Subscription Date", | ||
"type": "string", | ||
"format": "date-time", | ||
"description": | ||
"Date and time when the enduser has subscribed to a notification topic. An end user is subscribed if they have a Subscription Date and the `unsubscriptiondetails/unsubscriptionDate` is empty." | ||
}, | ||
"xdm:notificationTarget": { | ||
"title": "Target/destination for the notification", | ||
"description": | ||
"Target/destination for where to send/receive the notification.", | ||
"$ref": | ||
"https://ns.adobe.com/experience/campaign/notificationsubscriptiontarget" | ||
}, | ||
"xdm:unsubscriptionDetails": { | ||
"title": "Adobe Campaign Notification Unsubscription details", | ||
"description": "Adobe Campaign notification unsubscription details.", | ||
"$ref": | ||
"https://ns.adobe.com/experience/campaign/notificationunsubscriptiondetails" | ||
} | ||
} | ||
}, | ||
"required": ["xdm:topicID", "xdm:type", "xdm:subscriptionDate"] | ||
}, | ||
"allOf": [ | ||
{ | ||
"$ref": "https://ns.adobe.com/xdm/common/extensible#/definitions/@context" | ||
}, | ||
{ | ||
"$ref": "#/definitions/notificationSubscription" | ||
} | ||
], | ||
"meta:status": "experimental" | ||
} |
38 changes: 38 additions & 0 deletions
38
extensions/adobe/experience/campaign/notificationsubscriptiontarget.schema.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"meta:license": [ | ||
"Copyright 2018 Adobe Systems Incorporated. All rights reserved.", | ||
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license", | ||
"you may not use this file except in compliance with the License. You may obtain a copy", | ||
"of the License at https://creativecommons.org/licenses/by/4.0/" | ||
], | ||
"$id": | ||
"https://ns.adobe.com/experience/campaign/notificationsubscriptiontarget", | ||
"$schema": "http://json-schema.org/draft-06/schema#", | ||
"title": "Notification subscription target", | ||
"type": "object", | ||
"meta:extensible": true, | ||
"description": | ||
"Target/destination for where to send/receive the notification.", | ||
"definitions": { | ||
"notificationTarget": { | ||
"properties": { | ||
"xdm:emailAddress": { | ||
"title": "Address", | ||
"type": "string", | ||
"format": "email", | ||
"description": | ||
"The technical address, e.g 'name@domain.com' as commonly defined in RFC2822 and subsequent standards." | ||
} | ||
} | ||
} | ||
}, | ||
"allOf": [ | ||
{ | ||
"$ref": "https://ns.adobe.com/xdm/common/extensible#/definitions/@context" | ||
}, | ||
{ | ||
"$ref": "#/definitions/notificationSubscriptionTarget" | ||
} | ||
], | ||
"meta:status": "experimental" | ||
} |
51 changes: 51 additions & 0 deletions
51
extensions/adobe/experience/campaign/notificationunsubscriptiondetails.schema.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"meta:license": [ | ||
"Copyright 2018 Adobe Systems Incorporated. All rights reserved.", | ||
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license", | ||
"you may not use this file except in compliance with the License. You may obtain a copy", | ||
"of the License at https://creativecommons.org/licenses/by/4.0/" | ||
], | ||
"$id": | ||
"https://ns.adobe.com/experience/campaign/notificationunsubscriptiondetails", | ||
"$schema": "http://json-schema.org/draft-06/schema#", | ||
"title": "Notification unsubscription details", | ||
"type": "object", | ||
"meta:extensible": true, | ||
"description": | ||
"Adobe Campaign notification unsubscriptions allow endusers opt out after opting into topics that can be used for communication such as Marketing subscription lists.", | ||
"definitions": { | ||
"notificationUnSubscription": { | ||
"properties": { | ||
"xdm:unsubscriptionDate": { | ||
"title": "Unsubscription Date", | ||
"type": "string", | ||
"format": "date-time", | ||
"description": | ||
"Date and time when the enduser has unsubscribed from a notification topic. When the subscription is registered the xdm:unsubscriptionDate must be empty." | ||
}, | ||
"xdm:remarkID": { | ||
"title": "Remark Identifier", | ||
"type": "string", | ||
"description": | ||
"The pre defined remark that the enduser identified when unbsubscribing." | ||
}, | ||
"xdm:remarkText": { | ||
"title": "Remark text", | ||
"type": "string", | ||
"description": | ||
"A customer comment/remark that the enduser provided when unbsubscribing." | ||
} | ||
} | ||
}, | ||
"required": ["xdm:unsubscriptionDate"] | ||
}, | ||
"allOf": [ | ||
{ | ||
"$ref": "https://ns.adobe.com/xdm/common/extensible#/definitions/@context" | ||
}, | ||
{ | ||
"$ref": "#/definitions/notificationUnSubscriptionDetails" | ||
} | ||
], | ||
"meta:status": "experimental" | ||
} |
Oops, something went wrong.