forked from adobe/xdm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathactivity.schema.json
More file actions
297 lines (297 loc) · 14.6 KB
/
activity.schema.json
File metadata and controls
297 lines (297 loc) · 14.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
{
"meta:license": [
"Copyright 2021 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/decisioning/activity",
"$schema": "http://json-schema.org/draft-06/schema#",
"meta:extends": [
"https://ns.adobe.com/xdm/data/record"
],
"title": "Decision Activity",
"type": "object",
"meta:extensible": true,
"meta:abstract": false,
"description": "Controls a decisioning process and describes some form of action that is planned to happen, is currently happening, or has already happened. The purpose of the activity is to execute a number of steps to return an ordered selection of best options that qualify in a given context (time-bound, profile-bound, option-bound, context data) or return or a default option (fallback). A decision activity can be thought of as a kind of https://www.w3.org/ns/activitystreams#Activity or https://schema.org/Action. Those entities imply an actor/agent which is a software construct (service).",
"definitions": {
"activity-details": {
"type": "object",
"properties": {
"repo:etag": {
"title": "Activity ETag",
"type": "string",
"description": "The revision that the decision activity object was at when the snapshot was taken.",
"meta:titleId": "activity##repo:etag##title##18491",
"meta:descriptionId": "activity##repo:etag##description##28161"
},
"https://ns.adobe.com/experience/decisioning/name": {
"title": "Activity Name",
"type": "string",
"description": "Activity name. The name is displayed in various user interfaces.",
"meta:titleId": "activity##https://ns.adobe.com/experience/decisioning/name##title##89441",
"meta:descriptionId": "activity##https://ns.adobe.com/experience/decisioning/name##description##29001"
},
"https://ns.adobe.com/experience/decisioning/startTime": {
"title": "Activity Start Date and Time",
"type": "string",
"format": "date-time",
"description": "Activity start date and end time. Property has the semantic of schema.org's 'startTime' property defined on http://schema.org/Action",
"meta:titleId": "activity##https://ns.adobe.com/experience/decisioning/startTime##title##14601",
"meta:descriptionId": "activity##https://ns.adobe.com/experience/decisioning/startTime##description##5721"
},
"https://ns.adobe.com/experience/decisioning/endTime": {
"title": "Activity End Date and Time",
"type": "string",
"format": "date-time",
"description": "Activity end date and end time. Property has the semantic of schema.org's 'endTime' property defined on http://schema.org/Action",
"meta:titleId": "activity##https://ns.adobe.com/experience/decisioning/endTime##title##31021",
"meta:descriptionId": "activity##https://ns.adobe.com/experience/decisioning/endTime##description##14761"
},
"https://ns.adobe.com/experience/decisioning/fallback": {
"title": "Fallback Option",
"type": "string",
"format": "uri-reference",
"description": "The reference to a fallback option that is used when decisioning in the context of this activity does not qualify any of the regular options (this typically happens when hard constraints are applied). The value is the URI (@id) of the fallback option that is referenced.",
"meta:titleId": "activity##https://ns.adobe.com/experience/decisioning/fallback##title##22951",
"meta:descriptionId": "activity##https://ns.adobe.com/experience/decisioning/fallback##description##6401"
}
}
},
"activity-snapshot-identifier": {
"type": "object",
"properties": {
"https://ns.adobe.com/experience/decisioning/activityID": {
"title": "Activity Identifier",
"type": "string",
"format": "uri-reference",
"description": "A unique, immutable identifier for the decision activity.",
"meta:titleId": "activity##https://ns.adobe.com/experience/decisioning/activityID##title##24741",
"meta:descriptionId": "activity##https://ns.adobe.com/experience/decisioning/activityID##description##64161"
},
"repo:etag": {
"title": "Activity ETag",
"type": "string",
"description": "The revision that the decision activity object was at when the snapshot was taken.",
"meta:titleId": "activity##repo:etag##title##88321",
"meta:descriptionId": "activity##repo:etag##description##17531"
}
}
}
},
"allOf": [
{
"$ref": "https://ns.adobe.com/xdm/data/record"
},
{
"$ref": "#/definitions/activity-details"
}
],
"meta:status": "stable",
"meta:titleId": "activity##title##64091",
"meta:descriptionId": "activity##description##26151",
"examples": [
{
"@id": "xcore:offer-activity:fd55d033fea4b82",
"https://ns.adobe.com/experience/decisioning/name": "In App Messages",
"https://ns.adobe.com/experience/decisioning/startDate": "2019-06-18T10:52:57.000Z",
"https://ns.adobe.com/experience/decisioning/endDate": "2019-09-01T00:00:00.000Z",
"https://ns.adobe.com/experience/decisioning/fallback": "xcore:fallback-offer:f6709ad4e7c0bac",
"https://ns.adobe.com/experience/decisioning/status": "draft"
},
{
"@id": "xcore:offer-activity:fd55d033fea4b82",
"https://ns.adobe.com/experience/decisioning/name": "In App Messages",
"https://ns.adobe.com/experience/decisioning/startDate": "2019-06-18T10:52:57.000Z",
"https://ns.adobe.com/experience/decisioning/endDate": "2019-09-01T00:00:00.000Z",
"https://ns.adobe.com/experience/decisioning/status": "live",
"https://ns.adobe.com/experience/decisioning/fallback": "xcore:fallback-offer:f6709ad4e7c0bac",
"https://ns.adobe.com/experience/decisioning/criteria": [
{
"xdm:placements": [
"xcore:offer-placement:c652463157c2aa1"
],
"xdm:optionSelection": {
"xdm:filter": "xcore:offer-filter:f6998eb62ed6f15"
},
"xdm:profileConstraints": {
"xdm:description": "Pilot = Y",
"xdm:eligibilityRule": "xcore:eligibility-rule:e5244c22eff29e8"
},
"xdm:ranking": {
"xdm:priority": 0
}
},
{
"xdm:placements": [
"xcore:offer-placement:c652463157c2aa2"
],
"xdm:optionSelection": {
"xdm:options": [
"xcore:offer:f6998eb62ed6f15"
]
},
"xdm:profileConstraints": {
"xdm:eligibilityRule": "xcore:eligibility-rule:f65212b6b3c0ba3"
},
"xdm:ranking": {
"xdm:priority": 0
}
},
{
"xdm:description": "S1:",
"xdm:placements": [
"xcore:offer-placement:6111463157c2221"
],
"xdm:optionSelection": {
"xdm:description": "Charge_Elite_30 Offer",
"xdm:options": [
"xcore:offer:f6998eb62ed6f15"
]
},
"xdm:profileConstraints": {
"xdm:description": "Tender Group in (ClassicKC, MVC) AND Pilot = Y AND Discount(Reserve1) = 30",
"xdm:eligibilityRule": "xcore:eligibility-rule:f65212b6b3c0b01"
},
"xdm:ranking": {
"xdm:priority": 8
}
},
{
"xdm:description": "S2:",
"xdm:placements": [
"xcore:offer-placement:6111463157c2221"
],
"xdm:optionSelection": {
"xdm:description": "Charge_Elite_Generic",
"xdm:options": [
"xcore:offer:f6998eb62ed6f16"
]
},
"xdm:profileConstraints": {
"xdm:description": "Tender Group in (ClassicKC, MVC) AND Pilot = Y AND Discount(Reserve1) != 30",
"xdm:eligibilityRule": "xcore:eligibility-rule:f65212b6b3c0b02"
},
"xdm:ranking": {
"xdm:priority": 7
}
},
{
"xdm:description": "S3:",
"xdm:placements": [
"xcore:offer-placement:6111463157c2221"
],
"xdm:optionSelection": {
"xdm:description": "Members_15",
"xdm:options": [
"xcore:offer:f6998eb62ed6f17"
]
},
"xdm:profileConstraints": {
"xdm:description": "Tender Group in (NonKC) AND Pilot = Y AND Discount(Reserve1) = 15",
"xdm:eligibilityRule": "xcore:eligibility-rule:f65212b6b3c0b03"
},
"xdm:ranking": {
"xdm:priority": 6
}
},
{
"xdm:description": "S4:",
"xdm:placements": [
"xcore:offer-placement:6111463157c2221"
],
"xdm:optionSelection": {
"xdm:description": "Members_20",
"xdm:options": [
"xcore:offer:f6998eb62ed6f18"
]
},
"xdm:profileConstraints": {
"xdm:description": "Tender Group in (NonKC) AND Pilot = Y AND Discount(Reserve1) = 20",
"xdm:eligibilityRule": "xcore:eligibility-rule:f65212b6b3c0b04"
},
"xdm:ranking": {
"xdm:priority": 5
}
},
{
"xdm:description": "S5:",
"xdm:placements": [
"xcore:offer-placement:6111463157c2221"
],
"xdm:optionSelection": {
"xdm:description": "Members_30",
"xdm:options": [
"xcore:offer:f6998eb62ed6f19"
]
},
"xdm:profileConstraints": {
"xdm:description": "Tender Group in (NonKC) AND Pilot = Y AND Discount(Reserve1) = 30",
"xdm:eligibilityRule": "xcore:eligibility-rule:f65212b6b3c0b05"
},
"xdm:ranking": {
"xdm:priority": 4
}
},
{
"xdm:description": "S6:",
"xdm:placements": [
"xcore:offer-placement:6111463157c2221"
],
"xdm:optionSelection": {
"xdm:description": "NONKC",
"xdm:options": [
"xcore:offer:f6998eb62ed6f20"
]
},
"xdm:profileConstraints": {
"xdm:description": "Tender Group in (NonKC) AND Pilot != Y",
"xdm:eligibilityRule": "xcore:eligibility-rule:f65212b6b3c0b06"
},
"xdm:ranking": {
"xdm:priority": 3
}
},
{
"xdm:description": "S7:",
"xdm:placements": [
"xcore:offer-placement:6111463157c2221"
],
"xdm:optionSelection": {
"xdm:description": "Credit_30",
"xdm:options": [
"xcore:offer:f6998eb62ed6f21"
]
},
"xdm:profileConstraints": {
"xdm:description": "Tender Group in (ClassicKC, MVC, Unmatched) AND Pilot != Y AND Discount(Reserve1) = 30",
"xdm:eligibilityRule": "xcore:eligibility-rule:f65212b6b3c0b07"
},
"xdm:ranking": {
"xdm:priority": 2
}
},
{
"xdm:description": "S8:",
"xdm:placements": [
"xcore:offer-placement:6111463157c2221"
],
"xdm:optionSelection": {
"xdm:description": "Credit_Generic",
"xdm:options": [
"xcore:offer:f6998eb62ed6f22"
]
},
"xdm:profileConstraints": {
"xdm:description": "Tender Group = ClassicKC OR MVC OR NULL OR Unmatched AND Pilot != Y AND Discount(Reserve1) !=30",
"xdm:eligibilityRule": "xcore:eligibility-rule:f65212b6b3c0b09"
},
"xdm:ranking": {
"xdm:priority": 1
}
}
]
}
]
}