Skip to content

Commit

Permalink
Merge pull request #444 from harleensahni/add-profile-stitch-to-segme…
Browse files Browse the repository at this point in the history
…nt-membership

profile stitch
  • Loading branch information
kstreeter authored Aug 15, 2018
2 parents 7363801 + 9018d5a commit e0e661a
Show file tree
Hide file tree
Showing 7 changed files with 195 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"aem_user": "packageUser",
"aem_password": "override me securely",
"markdown-importer-version": "0.0.4",
"schemas": 211
"schemas": 213
},
"scripts": {
"clean": "rm -rf docs/reference",
Expand Down
53 changes: 52 additions & 1 deletion schemas/context/experienceevent.example.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,56 @@
},
"xdm:marketing": {
"xdm:trackingCode": "marketingcampaign111"
}
},
"xdm:profileStitching": [
{
"xdm:profileStitchID": {
"@id": "https://data.adobe.io/entities/profileStitchIdentity/1",
"xdm:namespace": {
"xdm:code": "AAM"
}
},
"xdm:version": "1.0",
"xdm:identities": [
{
"xdm:id": "92312748749128",
"xdm:namespace": {
"xdm:code": "ECID"
}
},
{
"xdm:id": "62312748749321",
"xdm:namespace": {
"xdm:code": "ECID"
}
},
{
"xdm:id": "49312748749132",
"xdm:namespace": {
"xdm:code": "ECID"
}
}
]
}
],
"xdm:segmentMemberships": [
{
"xdm:segmentID": {
"@id": "https://data.adobe.io/entities/identity/92312748749128",
"xdm:namespace": {
"xdm:code": "AAM"
}
},
"xdm:profileStitchID": {
"@id": "https://data.adobe.io/entities/profileStitchIdentity/1",
"xdm:namespace": {
"xdm:code": "AAM"
},
"xdm:lastQualificationTime": "2017-09-26T15:52:25+00:00",
"xdm:version": "1.0",
"xdm:validUntil": "2017-12-26T15:52:25+00:00",
"xdm:status": "realized"
}
}
]
}
32 changes: 32 additions & 0 deletions schemas/context/experienceevent.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,38 @@
"description": "The media activity information related to the experience event"
}
},
"xdm:profileStitching" : {
"title": "Profile Stitching",
"description": "Details about the ids that were joined by profile stitching.",
"$ref": "https://ns.adobe.com/xdm/context/profileStitch"
},
"xdm:segmentMemberships": {
"title": "Segment Memberships",
"description": "The segments associated with this experience event",
"type": "array",
"items": {
"type": "object",
"allOf": [
{
"$ref": "https://ns.adobe.com/xdm/context/segmentmembership"
},
{
"properties": {
"xdm:identities": {
"title": "All User Identities",
"type": "array",
"items": {
"$ref": "https://ns.adobe.com/xdm/context/identity"
},
"minItems": 1,
"description":
"Array of Identities. Condensed, normalized encapsulation of all end user identifiers."
}
}
}
]
}
},
"required": ["@id", "xdm:timestamp", "xdm:endUserIDs"]
}
},
Expand Down
22 changes: 22 additions & 0 deletions schemas/context/profilestitch.example.1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"xdm:profileStitchID": {
"@id": "https://data.adobe.io/entities/profileStitchIdentity/1",
"xdm:namespace": {
"xdm:code": "AAM"
}
},
"xdm:version": "1.0",
"xdm:endUserIds": {
"https://ns.adobe.com/experience/mcid": {
"xdm:id": "https://data.adobe.io/entities/identity/92312748749128",
"additionalIDs": [
"https://data.adobe.io/entities/identity/62312748749321",
"https://data.adobe.io/entities/identity/49312748749132"
],
"xdm:namespace": {
"xdm:code": "ECID"
}
}
}
}

40 changes: 40 additions & 0 deletions schemas/context/profilestitch.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"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/xdm/context/profileStitch",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "Profile Stitch",
"type": "object",
"description": "Details about the ids that were joined by profile stitching.",
"definitions": {
"profileStitch": {
"properties": {
"xdm:profileStitchID": {
"title": "Profile Stitch ID",
"$ref": "https://ns.adobe.com/xdm/context/profileStitchIdentity",
"description": "The identity of the segment or snapshot definition in with the domain of the specific system that processes that type of segment."
},
"xdm:version": {
"title": "Version",
"type": "string",
"description": "The version of the profile stitch definition used. Useful for debugging."
},
"xdm:endUserIDs": {
"title": "End User IDs",
"$ref": "https://ns.adobe.com/xdm/context/enduserids",
"description": "Condensed, normalized encapsulation of all end user identifiers."
}
}
}
},
"allOf": [
{
"$ref": "#/definitions/profileStitch"
}
],
"meta:status": "experimental"
}
6 changes: 6 additions & 0 deletions schemas/context/profilestitchidentity.example.1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"@id": "https://data.adobe.io/entities/profileStitchIdentity/1",
"xdm:namespace": {
"xdm:code": "AAM"
}
}
42 changes: 42 additions & 0 deletions schemas/context/profilestitchidentity.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"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/xdm/context/profileStitchIdentity",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "Identity",
"type": "object",
"description": "ProfileStitchIdentity is used to clearly distinguish Profile Stitching from multiple sources. ProfileStitchIdentity is established by an Profile Stitch identity provider, which itself is referenced in the `namespace` attribute. Within each `namespace`, the profileStitchIdentity is unique.",
"definitions": {
"profileStitchIdentity": {
"properties": {
"@id": {
"title": "Identifier",
"type": "string",
"format": "uri",
"description": "Identity of the Profile Stitch in the related namespace."
},
"xdm:namespace": {
"title": "Namespace",
"$ref": "https://ns.adobe.com/xdm/context/namespace",
"description": "The namespace associated with the `xid` attribute."
},
"xdm:xid": {
"title": "Experience Identifier",
"type": "string",
"description": "When present, this value represents a cross-namespace identifier that is unique across all namespace-scoped identifiers in all namespaces."
}
}
}
},
"allOf": [
{
"$ref": "#/definitions/profileStitchIdentity"
}
],
"meta:status": "experimental"
}

0 comments on commit e0e661a

Please sign in to comment.