Skip to content

Commit 014c404

Browse files
committed
chore: update data attrs
1 parent 15356f9 commit 014c404

9 files changed

+872
-32
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"name": "CloudEvent",
3+
"type": "record",
4+
"doc": "Avro Event Format for CloudEvents created with openedx_events/schema",
5+
"fields": [
6+
{
7+
"name": "course_notification_data",
8+
"type": {
9+
"name": "CourseNotificationData",
10+
"type": "record",
11+
"fields": [
12+
{
13+
"name": "course_key",
14+
"type": "string"
15+
},
16+
{
17+
"name": "app_name",
18+
"type": "string"
19+
},
20+
{
21+
"name": "notification_type",
22+
"type": "string"
23+
},
24+
{
25+
"name": "content_url",
26+
"type": "string"
27+
},
28+
{
29+
"name": "content_context",
30+
"type": {
31+
"type": "map",
32+
"values": "string"
33+
}
34+
},
35+
{
36+
"name": "audience_filters",
37+
"type": {
38+
"type": "map",
39+
"values": {
40+
"type": "array",
41+
"items": "string"
42+
}
43+
}
44+
}
45+
]
46+
}
47+
}
48+
],
49+
"namespace": "org.openedx.learning.course.notification.requested.v1"
50+
}
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
{
2+
"name": "CloudEvent",
3+
"type": "record",
4+
"doc": "Avro Event Format for CloudEvents created with openedx_events/schema",
5+
"fields": [
6+
{
7+
"name": "configuration",
8+
"type": {
9+
"name": "CourseDiscussionConfigurationData",
10+
"type": "record",
11+
"fields": [
12+
{
13+
"name": "course_key",
14+
"type": "string"
15+
},
16+
{
17+
"name": "provider_type",
18+
"type": "string"
19+
},
20+
{
21+
"name": "enable_in_context",
22+
"type": "boolean"
23+
},
24+
{
25+
"name": "enable_graded_units",
26+
"type": "boolean"
27+
},
28+
{
29+
"name": "unit_level_visibility",
30+
"type": "boolean"
31+
},
32+
{
33+
"name": "plugin_configuration",
34+
"type": {
35+
"type": "map",
36+
"values": "boolean"
37+
}
38+
},
39+
{
40+
"name": "contexts",
41+
"type": {
42+
"type": "array",
43+
"items": {
44+
"name": "DiscussionTopicContext",
45+
"type": "record",
46+
"fields": [
47+
{
48+
"name": "title",
49+
"type": "string"
50+
},
51+
{
52+
"name": "usage_key",
53+
"type": [
54+
"null",
55+
"string"
56+
],
57+
"default": null
58+
},
59+
{
60+
"name": "group_id",
61+
"type": [
62+
"null",
63+
"long"
64+
],
65+
"default": null
66+
},
67+
{
68+
"name": "external_id",
69+
"type": [
70+
"null",
71+
"string"
72+
],
73+
"default": null
74+
},
75+
{
76+
"name": "ordering",
77+
"type": [
78+
"null",
79+
"long"
80+
],
81+
"default": null
82+
},
83+
{
84+
"name": "context",
85+
"type": {
86+
"type": "map",
87+
"values": "string"
88+
}
89+
}
90+
]
91+
}
92+
}
93+
}
94+
]
95+
}
96+
}
97+
],
98+
"namespace": "org.openedx.learning.discussions.configuration.changed.v1"
99+
}
Lines changed: 183 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,183 @@
1+
{
2+
"name": "CloudEvent",
3+
"type": "record",
4+
"doc": "Avro Event Format for CloudEvents created with openedx_events/schema",
5+
"fields": [
6+
{
7+
"name": "thread",
8+
"type": {
9+
"name": "DiscussionThreadData",
10+
"type": "record",
11+
"fields": [
12+
{
13+
"name": "body",
14+
"type": "string"
15+
},
16+
{
17+
"name": "commentable_id",
18+
"type": "string"
19+
},
20+
{
21+
"name": "id",
22+
"type": "string"
23+
},
24+
{
25+
"name": "truncated",
26+
"type": "boolean"
27+
},
28+
{
29+
"name": "url",
30+
"type": "string"
31+
},
32+
{
33+
"name": "user",
34+
"type": {
35+
"name": "UserData",
36+
"type": "record",
37+
"fields": [
38+
{
39+
"name": "id",
40+
"type": "long"
41+
},
42+
{
43+
"name": "is_active",
44+
"type": "boolean"
45+
},
46+
{
47+
"name": "pii",
48+
"type": {
49+
"name": "UserPersonalData",
50+
"type": "record",
51+
"fields": [
52+
{
53+
"name": "username",
54+
"type": "string"
55+
},
56+
{
57+
"name": "email",
58+
"type": "string"
59+
},
60+
{
61+
"name": "name",
62+
"type": "string"
63+
}
64+
]
65+
}
66+
}
67+
]
68+
}
69+
},
70+
{
71+
"name": "course_id",
72+
"type": "string"
73+
},
74+
{
75+
"name": "thread_type",
76+
"type": [
77+
"null",
78+
"string"
79+
],
80+
"default": null
81+
},
82+
{
83+
"name": "anonymous",
84+
"type": [
85+
"null",
86+
"boolean"
87+
],
88+
"default": null
89+
},
90+
{
91+
"name": "anonymous_to_peers",
92+
"type": [
93+
"null",
94+
"boolean"
95+
],
96+
"default": null
97+
},
98+
{
99+
"name": "title",
100+
"type": [
101+
"null",
102+
"string"
103+
],
104+
"default": null
105+
},
106+
{
107+
"name": "title_truncated",
108+
"type": [
109+
"null",
110+
"boolean"
111+
],
112+
"default": null
113+
},
114+
{
115+
"name": "group_id",
116+
"type": [
117+
"null",
118+
"long"
119+
],
120+
"default": null
121+
},
122+
{
123+
"name": "team_id",
124+
"type": [
125+
"null",
126+
"long"
127+
],
128+
"default": null
129+
},
130+
{
131+
"name": "category_id",
132+
"type": [
133+
"null",
134+
"long"
135+
],
136+
"default": null
137+
},
138+
{
139+
"name": "category_name",
140+
"type": [
141+
"null",
142+
"string"
143+
],
144+
"default": null
145+
},
146+
{
147+
"name": "discussion",
148+
"type": [
149+
"null",
150+
{
151+
"type": "map",
152+
"values": "string"
153+
}
154+
],
155+
"default": null
156+
},
157+
{
158+
"name": "user_course_roles",
159+
"type": {
160+
"type": "array",
161+
"items": "string"
162+
}
163+
},
164+
{
165+
"name": "user_forums_roles",
166+
"type": {
167+
"type": "array",
168+
"items": "string"
169+
}
170+
},
171+
{
172+
"name": "options",
173+
"type": {
174+
"type": "map",
175+
"values": "boolean"
176+
}
177+
}
178+
]
179+
}
180+
}
181+
],
182+
"namespace": "org.openedx.learning.forum.thread.created.v1"
183+
}

0 commit comments

Comments
 (0)