From d0af2919d831032c2bee409e35e59f23885ffdc9 Mon Sep 17 00:00:00 2001 From: Rushin Date: Tue, 15 Feb 2022 16:35:05 -0800 Subject: [PATCH 1/2] B2BAEP-2658 Marketo Activities - Expand XDM for Change Revenue Stage --- components/behaviors/time-series.schema.json | 1 + .../events/revenueStageChanged.example.1.json | 1 + .../events/revenueStageChanged.schema.json | 81 +++++++++++++++++++ 3 files changed, 83 insertions(+) create mode 100644 components/fieldgroups/experience-event/events/revenueStageChanged.example.1.json create mode 100644 components/fieldgroups/experience-event/events/revenueStageChanged.schema.json diff --git a/components/behaviors/time-series.schema.json b/components/behaviors/time-series.schema.json index 3430cf9da..ffd401738 100644 --- a/components/behaviors/time-series.schema.json +++ b/components/behaviors/time-series.schema.json @@ -70,6 +70,7 @@ "listOperation.removeFromList": "List Operation Remove From List", "listOperation.addToList": "List Operation Add To List", "leadOperation.scoreChanged": "Lead Operation Score Changed", + "leadOperation.revenueStageChanged": "Lead Operation Revenue Stage changed", "leadOperation.statusInCampaignProgressionChanged": "Lead Operation Status In Campaign Progression Changed", "leadOperation.interestingMoment": "Lead Operation Interesting Moment", "leadOperation.newLead": "Lead Operation New Lead", diff --git a/components/fieldgroups/experience-event/events/revenueStageChanged.example.1.json b/components/fieldgroups/experience-event/events/revenueStageChanged.example.1.json new file mode 100644 index 000000000..9e26dfeeb --- /dev/null +++ b/components/fieldgroups/experience-event/events/revenueStageChanged.example.1.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/components/fieldgroups/experience-event/events/revenueStageChanged.schema.json b/components/fieldgroups/experience-event/events/revenueStageChanged.schema.json new file mode 100644 index 000000000..478fe4a53 --- /dev/null +++ b/components/fieldgroups/experience-event/events/revenueStageChanged.schema.json @@ -0,0 +1,81 @@ +{ + "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/revenueStageChanged", + "$schema": "http://json-schema.org/draft-06/schema#", + "title": "Revenue Stage Changed", + "type": "object", + "meta:tags": { + "b2bSchema": true + }, + "meta:conditionalField": "xdm:eventType", + "meta:conditionalValue": "leadOperation.revenueStageChanged", + "meta:intendedToExtend": [ + "https://ns.adobe.com/xdm/context/experienceevent" + ], + "description": "Use to capture details when revenue model stage for a person changes.", + "definitions": { + "revenueStageChanged": { + "properties": { + "xdm:leadOperation": { + "title": "Lead Operation", + "type": "object", + "properties": { + "xdm:changeRevenueStage": { + "title": "Change Revenue Stage", + "type": "object", + "properties": { + "xdm:modelKey": { + "title": "Model Key", + "description": "Unique composite identifier for the model of the Revenue Cycle Modeler.", + "$ref": "https://ns.adobe.com/xdm/datatypes/b2b-source" + }, + "xdm:modelName": { + "title": "Model Name", + "type": "string", + "description": "Name of the model for Revenue Cycle Modeler." + }, + "xdm:newStageID": { + "title": "New Stage ID", + "type": "string", + "description": "Unique ID of the stage person assigned to." + }, + "xdm:newStageName": { + "title": "New Stage Name", + "type": "string", + "description": "Name of the new stage person assigned to." + }, + "xdm:previousStageID": { + "title": "Previous Stage ID", + "type": "string", + "description": "Unique ID of the previous stage person assigned from." + }, + "xdm:previousStageName": { + "title": "Previous Stage Name", + "type": "string", + "description": "Name of the previous stage person assigned from." + }, + "xdm:reason": { + "title": "Reason", + "type": "string", + "description": "Reason to indicate changes in model stages for a person." + } + } + } + } + } + } + } + }, + "allOf": [ + { + "$ref": "#/definitions/revenueStageChanged" + } + ], + "meta:status": "experimental", + "meta:createdDate": "2022-02-15" +} \ No newline at end of file From 481ef8da19fe2d639795d47094b1168410b33884 Mon Sep 17 00:00:00 2001 From: Rushin Date: Tue, 15 Feb 2022 17:07:09 -0800 Subject: [PATCH 2/2] B2BAEP-2658 Marketo Activities - Expand XDM for Change Revenue Stage --- .../events/revenueStageChanged.schema.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/components/fieldgroups/experience-event/events/revenueStageChanged.schema.json b/components/fieldgroups/experience-event/events/revenueStageChanged.schema.json index 478fe4a53..a35ac663e 100644 --- a/components/fieldgroups/experience-event/events/revenueStageChanged.schema.json +++ b/components/fieldgroups/experience-event/events/revenueStageChanged.schema.json @@ -39,20 +39,20 @@ "type": "string", "description": "Name of the model for Revenue Cycle Modeler." }, - "xdm:newStageID": { - "title": "New Stage ID", - "type": "string", - "description": "Unique ID of the stage person assigned to." + "xdm:newStageKey": { + "title": "New Stage Key", + "description": "Unique composite identifier of the stage person assigned to.", + "$ref": "https://ns.adobe.com/xdm/datatypes/b2b-source" }, "xdm:newStageName": { "title": "New Stage Name", "type": "string", "description": "Name of the new stage person assigned to." }, - "xdm:previousStageID": { - "title": "Previous Stage ID", - "type": "string", - "description": "Unique ID of the previous stage person assigned from." + "xdm:previousStageKey": { + "title": "Previous Stage Key", + "description": "Unique composite identifier of the previous stage person assigned from.", + "$ref": "https://ns.adobe.com/xdm/datatypes/b2b-source" }, "xdm:previousStageName": { "title": "Previous Stage Name",