@uidu/client 3.16.0 → 3.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/index.ts CHANGED
@@ -135,7 +135,15 @@ export type { Channel } from './help-center';
135
135
  export { search } from './search';
136
136
  export type { SearchResult } from './search';
137
137
 
138
- export { getEvent, listEvents, createAttendance, createEvent } from './events';
138
+ export {
139
+ getEvent,
140
+ listEvents,
141
+ createAttendance,
142
+ updateAttendance,
143
+ createEvent,
144
+ createEventInstance,
145
+ updateEventInstance,
146
+ } from './events';
139
147
  export type { Event } from './events';
140
148
 
141
149
  export { getCall, listCalls } from './calls';
@@ -204,6 +212,8 @@ export {
204
212
  listCourses,
205
213
  getEnrollment,
206
214
  listEnrollments,
215
+ createEnrollment,
216
+ updateEnrollment,
207
217
  getLecture,
208
218
  listLectures,
209
219
  } from './courses';
@@ -0,0 +1,27 @@
1
+ mutation CreateEnrollment($input: CreateEnrollmentInput!) {
2
+ createEnrollment(input: $input) {
3
+ enrollment {
4
+ id
5
+ aasmState
6
+ }
7
+ errors {
8
+ key
9
+ name
10
+ type
11
+ }
12
+ }
13
+ }
14
+
15
+ mutation UpdateEnrollment($input: UpdateEnrollmentInput!) {
16
+ updateEnrollment(input: $input) {
17
+ enrollment {
18
+ id
19
+ aasmState
20
+ }
21
+ errors {
22
+ key
23
+ name
24
+ type
25
+ }
26
+ }
27
+ }
@@ -0,0 +1,29 @@
1
+ mutation CreateEventInstance($input: CreateEventInstanceInput!) {
2
+ createEventInstance(input: $input) {
3
+ eventInstance {
4
+ id
5
+ beginsAt
6
+ finishesAt
7
+ }
8
+ errors {
9
+ key
10
+ name
11
+ type
12
+ }
13
+ }
14
+ }
15
+
16
+ mutation UpdateEventInstance($input: UpdateEventInstanceInput!) {
17
+ updateEventInstance(input: $input) {
18
+ eventInstance {
19
+ id
20
+ beginsAt
21
+ finishesAt
22
+ }
23
+ errors {
24
+ key
25
+ name
26
+ type
27
+ }
28
+ }
29
+ }
@@ -0,0 +1,14 @@
1
+ mutation UpdateAttendance($input: UpdateAttendanceInput!) {
2
+ updateAttendance(input: $input) {
3
+ attendance {
4
+ id
5
+ rsvpStatus
6
+ checkedIn
7
+ }
8
+ errors {
9
+ key
10
+ name
11
+ type
12
+ }
13
+ }
14
+ }