diff --git a/components/behaviors/time-series.schema.json b/components/behaviors/time-series.schema.json index 3430cf9da..7950fc975 100644 --- a/components/behaviors/time-series.schema.json +++ b/components/behaviors/time-series.schema.json @@ -76,6 +76,7 @@ "leadOperation.convertLead": "Lead Operation Convert Lead", "leadOperation.callWebhook": "Lead Operation Call Webhook", "leadOperation.changeEngagementCampaignCadence": "Change Engagement Campaign Cadence", + "leadOperation.addToCampaign": "Lead Operation Add To Campaign", "directMarketing.emailBounced": "Direct Marketing Email Bounced", "directMarketing.emailBouncedSoft": "Direct Marketing Email Bounced Soft", "directMarketing.emailDelivered": "Direct Marketing Email Delivered", diff --git a/components/fieldgroups/experience-event/events/add-to-campaign.example.1.json b/components/fieldgroups/experience-event/events/add-to-campaign.example.1.json new file mode 100644 index 000000000..7a73a41bf --- /dev/null +++ b/components/fieldgroups/experience-event/events/add-to-campaign.example.1.json @@ -0,0 +1,2 @@ +{ +} \ No newline at end of file diff --git a/components/fieldgroups/experience-event/events/add-to-campaign.schema.json b/components/fieldgroups/experience-event/events/add-to-campaign.schema.json new file mode 100644 index 000000000..610a906b2 --- /dev/null +++ b/components/fieldgroups/experience-event/events/add-to-campaign.schema.json @@ -0,0 +1,61 @@ +{ + "meta:license": [ + "Copyright 2022 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/mixins/events/add-to-campaign", + "$schema": "http://json-schema.org/draft-06/schema#", + "title": "Add To Campaign", + "type": "object", + "meta:tags": { + "b2bSchema": true + }, + "meta:conditionalField": "xdm:eventType", + "meta:conditionalValue": "leadOperation.addToCampaign", + "meta:intendedToExtend": [ + "https://ns.adobe.com/xdm/context/experienceevent" + ], + "description": "Use to add a person to the specific campaign.", + "definitions": { + "addtocampaign": { + "properties": { + "xdm:leadOperation": { + "title": "Lead Operation", + "type": "object", + "properties": { + "xdm:addToCampaign": { + "title": "Add To Campaign", + "type": "object", + "properties": { + "xdm:campaignKey": { + "title": "Campaign Key", + "description": "Unique composite identifier of the campaign.", + "$ref": "https://ns.adobe.com/xdm/datatypes/b2b-source" + }, + "xdm:streamKey": { + "title": "Stream Key", + "description": "Unique composite identifier of the stream.", + "$ref": "https://ns.adobe.com/xdm/datatypes/b2b-source" + }, + "xdm:streamName": { + "title": "Stream Name", + "type": "string", + "description": "Name of the stream." + } + } + } + } + } + } + } + }, + "allOf": [ + { + "$ref": "#/definitions/addtocampaign" + } + ], + "meta:status": "experimental", + "meta:createdDate": "2022-02-14" +}