@oaknational/google-classroom-addon 1.30.0 → 1.32.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/dist/cjs/services/index.js +4 -4
- package/dist/cjs/services/index.js.map +1 -1
- package/dist/cjs/types/index.js +1 -1
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/esm/services/index.js +4 -4
- package/dist/esm/services/index.js.map +1 -1
- package/dist/esm/types/index.js +1 -1
- package/dist/esm/types/index.js.map +1 -1
- package/dist/services.d.ts +261 -14
- package/dist/types.d.ts +206 -27
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -54,6 +54,18 @@ declare const userCredentialsEntitySchema: z.ZodObject<{
|
|
|
54
54
|
profilePictureUrl: z.ZodOptional<z.ZodString>;
|
|
55
55
|
}, z.core.$strip>;
|
|
56
56
|
type UserCredentialsEntity = z.infer<typeof userCredentialsEntitySchema>;
|
|
57
|
+
declare const classroomCourseWorkEntitySchema: z.ZodObject<{
|
|
58
|
+
assignmentToken: z.ZodString;
|
|
59
|
+
courseWorkId: z.ZodString;
|
|
60
|
+
courseId: z.ZodString;
|
|
61
|
+
teacherLoginHint: z.ZodString;
|
|
62
|
+
lessonSlug: z.ZodString;
|
|
63
|
+
programmeSlug: z.ZodString;
|
|
64
|
+
unitSlug: z.ZodString;
|
|
65
|
+
maxPoints: z.ZodNumber;
|
|
66
|
+
createdAt: z.ZodString;
|
|
67
|
+
}, z.core.$strip>;
|
|
68
|
+
type ClassroomCourseWorkEntity = z.infer<typeof classroomCourseWorkEntitySchema>;
|
|
57
69
|
|
|
58
70
|
declare const createAnnouncementAttachmentArgsSchema: z.ZodObject<{
|
|
59
71
|
courseId: z.ZodString;
|
|
@@ -85,9 +97,27 @@ declare const classroomAttachmentSchema: z.ZodObject<{
|
|
|
85
97
|
maxPoints: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
86
98
|
}, z.core.$strip>;
|
|
87
99
|
type ClassroomAttachment = z.infer<typeof classroomAttachmentSchema>;
|
|
100
|
+
declare const createCourseWorkArgsSchema: z.ZodObject<{
|
|
101
|
+
title: z.ZodString;
|
|
102
|
+
description: z.ZodOptional<z.ZodString>;
|
|
103
|
+
lessonUrl: z.ZodString;
|
|
104
|
+
maxPoints: z.ZodNumber;
|
|
105
|
+
}, z.core.$strip>;
|
|
106
|
+
type CreateCourseWorkArgs = z.infer<typeof createCourseWorkArgsSchema>;
|
|
107
|
+
declare const courseWorkCreatedResultSchema: z.ZodObject<{
|
|
108
|
+
courseWorkId: z.ZodString;
|
|
109
|
+
courseId: z.ZodString;
|
|
110
|
+
alternateLink: z.ZodOptional<z.ZodString>;
|
|
111
|
+
title: z.ZodString;
|
|
112
|
+
}, z.core.$strip>;
|
|
113
|
+
type CourseWorkCreatedResult = z.infer<typeof courseWorkCreatedResultSchema>;
|
|
114
|
+
declare const courseListItemSchema: z.ZodObject<{
|
|
115
|
+
id: z.ZodString;
|
|
116
|
+
name: z.ZodString;
|
|
117
|
+
section: z.ZodOptional<z.ZodString>;
|
|
118
|
+
}, z.core.$strip>;
|
|
119
|
+
type CourseListItem = z.infer<typeof courseListItemSchema>;
|
|
88
120
|
|
|
89
|
-
declare const UPDATABLE_SUBMISSION_STATES: readonly ["NEW", "CREATED", "RECLAIMED_BY_STUDENT"];
|
|
90
|
-
type UpdatableSubmissionState = (typeof UPDATABLE_SUBMISSION_STATES)[number];
|
|
91
121
|
declare const questionResultSchema: z.ZodObject<{
|
|
92
122
|
mode: z.ZodEnum<{
|
|
93
123
|
init: "init";
|
|
@@ -146,29 +176,17 @@ declare const introProgressSchema: z.ZodObject<{
|
|
|
146
176
|
worksheetDownloaded: z.ZodOptional<z.ZodBoolean>;
|
|
147
177
|
isComplete: z.ZodBoolean;
|
|
148
178
|
}, z.core.$strip>;
|
|
149
|
-
declare
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
TURNED_IN
|
|
155
|
-
RETURNED
|
|
156
|
-
}
|
|
157
|
-
|
|
179
|
+
declare enum PostSubmissionState {
|
|
180
|
+
SUBMISSION_STATE_UNSPECIFIED = "SUBMISSION_STATE_UNSPECIFIED",
|
|
181
|
+
NEW = "NEW",
|
|
182
|
+
CREATED = "CREATED",
|
|
183
|
+
RECLAIMED_BY_STUDENT = "RECLAIMED_BY_STUDENT",
|
|
184
|
+
TURNED_IN = "TURNED_IN",
|
|
185
|
+
RETURNED = "RETURNED"
|
|
186
|
+
}
|
|
187
|
+
declare const postSubmissionStateSchema: z.ZodEnum<typeof PostSubmissionState>;
|
|
188
|
+
declare const UPDATABLE_SUBMISSION_STATES: PostSubmissionState[];
|
|
158
189
|
declare const pupilLessonProgressSchema: z.ZodObject<{
|
|
159
|
-
postSubmissionState: z.ZodEnum<{
|
|
160
|
-
NEW: "NEW";
|
|
161
|
-
CREATED: "CREATED";
|
|
162
|
-
RECLAIMED_BY_STUDENT: "RECLAIMED_BY_STUDENT";
|
|
163
|
-
SUBMISSION_STATE_UNSPECIFIED: "SUBMISSION_STATE_UNSPECIFIED";
|
|
164
|
-
TURNED_IN: "TURNED_IN";
|
|
165
|
-
RETURNED: "RETURNED";
|
|
166
|
-
}>;
|
|
167
|
-
submissionId: z.ZodString;
|
|
168
|
-
attachmentId: z.ZodString;
|
|
169
|
-
courseId: z.ZodString;
|
|
170
|
-
itemId: z.ZodString;
|
|
171
|
-
pupilLoginHint: z.ZodString;
|
|
172
190
|
starterQuiz: z.ZodOptional<z.ZodObject<{
|
|
173
191
|
grade: z.ZodNumber;
|
|
174
192
|
numQuestions: z.ZodNumber;
|
|
@@ -234,14 +252,86 @@ declare const pupilLessonProgressSchema: z.ZodObject<{
|
|
|
234
252
|
}, z.core.$strip>>;
|
|
235
253
|
updatedAt: z.ZodString;
|
|
236
254
|
createdAt: z.ZodString;
|
|
255
|
+
postSubmissionState: z.ZodEnum<typeof PostSubmissionState>;
|
|
256
|
+
submissionId: z.ZodString;
|
|
257
|
+
attachmentId: z.ZodString;
|
|
258
|
+
courseId: z.ZodString;
|
|
259
|
+
itemId: z.ZodString;
|
|
260
|
+
pupilLoginHint: z.ZodString;
|
|
237
261
|
}, z.core.$strip>;
|
|
238
262
|
type PupilLessonProgress = z.infer<typeof pupilLessonProgressSchema>;
|
|
239
263
|
declare const upsertPupilLessonProgressArgsSchema: z.ZodObject<{
|
|
264
|
+
starterQuiz: z.ZodOptional<z.ZodObject<{
|
|
265
|
+
grade: z.ZodNumber;
|
|
266
|
+
numQuestions: z.ZodNumber;
|
|
267
|
+
isComplete: z.ZodBoolean;
|
|
268
|
+
questionResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
269
|
+
mode: z.ZodEnum<{
|
|
270
|
+
init: "init";
|
|
271
|
+
incomplete: "incomplete";
|
|
272
|
+
input: "input";
|
|
273
|
+
grading: "grading";
|
|
274
|
+
feedback: "feedback";
|
|
275
|
+
}>;
|
|
276
|
+
grade: z.ZodNumber;
|
|
277
|
+
pupilAnswer: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>, z.ZodNull]>>>;
|
|
278
|
+
feedback: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
279
|
+
correct: "correct";
|
|
280
|
+
incorrect: "incorrect";
|
|
281
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
282
|
+
correct: "correct";
|
|
283
|
+
incorrect: "incorrect";
|
|
284
|
+
}>>]>>;
|
|
285
|
+
isPartiallyCorrect: z.ZodOptional<z.ZodBoolean>;
|
|
286
|
+
correctAnswer: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodUndefined]>>]>>;
|
|
287
|
+
usedHint: z.ZodOptional<z.ZodBoolean>;
|
|
288
|
+
}, z.core.$strip>>>;
|
|
289
|
+
}, z.core.$strip>>;
|
|
290
|
+
exitQuiz: z.ZodOptional<z.ZodObject<{
|
|
291
|
+
grade: z.ZodNumber;
|
|
292
|
+
numQuestions: z.ZodNumber;
|
|
293
|
+
isComplete: z.ZodBoolean;
|
|
294
|
+
questionResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
295
|
+
mode: z.ZodEnum<{
|
|
296
|
+
init: "init";
|
|
297
|
+
incomplete: "incomplete";
|
|
298
|
+
input: "input";
|
|
299
|
+
grading: "grading";
|
|
300
|
+
feedback: "feedback";
|
|
301
|
+
}>;
|
|
302
|
+
grade: z.ZodNumber;
|
|
303
|
+
pupilAnswer: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>, z.ZodNull]>>>;
|
|
304
|
+
feedback: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
305
|
+
correct: "correct";
|
|
306
|
+
incorrect: "incorrect";
|
|
307
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
308
|
+
correct: "correct";
|
|
309
|
+
incorrect: "incorrect";
|
|
310
|
+
}>>]>>;
|
|
311
|
+
isPartiallyCorrect: z.ZodOptional<z.ZodBoolean>;
|
|
312
|
+
correctAnswer: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodUndefined]>>]>>;
|
|
313
|
+
usedHint: z.ZodOptional<z.ZodBoolean>;
|
|
314
|
+
}, z.core.$strip>>>;
|
|
315
|
+
}, z.core.$strip>>;
|
|
316
|
+
video: z.ZodOptional<z.ZodObject<{
|
|
317
|
+
played: z.ZodBoolean;
|
|
318
|
+
duration: z.ZodNumber;
|
|
319
|
+
timeElapsed: z.ZodNumber;
|
|
320
|
+
isComplete: z.ZodBoolean;
|
|
321
|
+
}, z.core.$strip>>;
|
|
322
|
+
intro: z.ZodOptional<z.ZodObject<{
|
|
323
|
+
worksheetAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
324
|
+
worksheetDownloaded: z.ZodOptional<z.ZodBoolean>;
|
|
325
|
+
isComplete: z.ZodBoolean;
|
|
326
|
+
}, z.core.$strip>>;
|
|
240
327
|
submissionId: z.ZodString;
|
|
241
328
|
attachmentId: z.ZodString;
|
|
242
329
|
courseId: z.ZodString;
|
|
243
330
|
itemId: z.ZodString;
|
|
244
331
|
pupilLoginHint: z.ZodString;
|
|
332
|
+
}, z.core.$strip>;
|
|
333
|
+
type UpsertPupilLessonProgressArgs = z.infer<typeof upsertPupilLessonProgressArgsSchema>;
|
|
334
|
+
declare const courseWorkPupilProgressSchema: z.ZodObject<{
|
|
245
335
|
starterQuiz: z.ZodOptional<z.ZodObject<{
|
|
246
336
|
grade: z.ZodNumber;
|
|
247
337
|
numQuestions: z.ZodNumber;
|
|
@@ -305,8 +395,97 @@ declare const upsertPupilLessonProgressArgsSchema: z.ZodObject<{
|
|
|
305
395
|
worksheetDownloaded: z.ZodOptional<z.ZodBoolean>;
|
|
306
396
|
isComplete: z.ZodBoolean;
|
|
307
397
|
}, z.core.$strip>>;
|
|
398
|
+
updatedAt: z.ZodString;
|
|
399
|
+
createdAt: z.ZodString;
|
|
400
|
+
submissionId: z.ZodString;
|
|
401
|
+
assignmentToken: z.ZodString;
|
|
402
|
+
courseWorkId: z.ZodString;
|
|
403
|
+
courseId: z.ZodString;
|
|
404
|
+
pupilLoginHint: z.ZodString;
|
|
405
|
+
gradeSubmitted: z.ZodOptional<z.ZodBoolean>;
|
|
308
406
|
}, z.core.$strip>;
|
|
309
|
-
type
|
|
407
|
+
type CourseWorkPupilProgress = z.infer<typeof courseWorkPupilProgressSchema>;
|
|
408
|
+
declare const upsertCourseWorkPupilProgressArgsSchema: z.ZodObject<{
|
|
409
|
+
starterQuiz: z.ZodOptional<z.ZodObject<{
|
|
410
|
+
grade: z.ZodNumber;
|
|
411
|
+
numQuestions: z.ZodNumber;
|
|
412
|
+
isComplete: z.ZodBoolean;
|
|
413
|
+
questionResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
414
|
+
mode: z.ZodEnum<{
|
|
415
|
+
init: "init";
|
|
416
|
+
incomplete: "incomplete";
|
|
417
|
+
input: "input";
|
|
418
|
+
grading: "grading";
|
|
419
|
+
feedback: "feedback";
|
|
420
|
+
}>;
|
|
421
|
+
grade: z.ZodNumber;
|
|
422
|
+
pupilAnswer: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>, z.ZodNull]>>>;
|
|
423
|
+
feedback: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
424
|
+
correct: "correct";
|
|
425
|
+
incorrect: "incorrect";
|
|
426
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
427
|
+
correct: "correct";
|
|
428
|
+
incorrect: "incorrect";
|
|
429
|
+
}>>]>>;
|
|
430
|
+
isPartiallyCorrect: z.ZodOptional<z.ZodBoolean>;
|
|
431
|
+
correctAnswer: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodUndefined]>>]>>;
|
|
432
|
+
usedHint: z.ZodOptional<z.ZodBoolean>;
|
|
433
|
+
}, z.core.$strip>>>;
|
|
434
|
+
}, z.core.$strip>>;
|
|
435
|
+
exitQuiz: z.ZodOptional<z.ZodObject<{
|
|
436
|
+
grade: z.ZodNumber;
|
|
437
|
+
numQuestions: z.ZodNumber;
|
|
438
|
+
isComplete: z.ZodBoolean;
|
|
439
|
+
questionResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
440
|
+
mode: z.ZodEnum<{
|
|
441
|
+
init: "init";
|
|
442
|
+
incomplete: "incomplete";
|
|
443
|
+
input: "input";
|
|
444
|
+
grading: "grading";
|
|
445
|
+
feedback: "feedback";
|
|
446
|
+
}>;
|
|
447
|
+
grade: z.ZodNumber;
|
|
448
|
+
pupilAnswer: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>, z.ZodNull]>>>;
|
|
449
|
+
feedback: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
450
|
+
correct: "correct";
|
|
451
|
+
incorrect: "incorrect";
|
|
452
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
453
|
+
correct: "correct";
|
|
454
|
+
incorrect: "incorrect";
|
|
455
|
+
}>>]>>;
|
|
456
|
+
isPartiallyCorrect: z.ZodOptional<z.ZodBoolean>;
|
|
457
|
+
correctAnswer: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodUndefined]>>]>>;
|
|
458
|
+
usedHint: z.ZodOptional<z.ZodBoolean>;
|
|
459
|
+
}, z.core.$strip>>>;
|
|
460
|
+
}, z.core.$strip>>;
|
|
461
|
+
video: z.ZodOptional<z.ZodObject<{
|
|
462
|
+
played: z.ZodBoolean;
|
|
463
|
+
duration: z.ZodNumber;
|
|
464
|
+
timeElapsed: z.ZodNumber;
|
|
465
|
+
isComplete: z.ZodBoolean;
|
|
466
|
+
}, z.core.$strip>>;
|
|
467
|
+
intro: z.ZodOptional<z.ZodObject<{
|
|
468
|
+
worksheetAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
469
|
+
worksheetDownloaded: z.ZodOptional<z.ZodBoolean>;
|
|
470
|
+
isComplete: z.ZodBoolean;
|
|
471
|
+
}, z.core.$strip>>;
|
|
472
|
+
submissionId: z.ZodString;
|
|
473
|
+
assignmentToken: z.ZodString;
|
|
474
|
+
courseWorkId: z.ZodString;
|
|
475
|
+
courseId: z.ZodString;
|
|
476
|
+
pupilLoginHint: z.ZodString;
|
|
477
|
+
}, z.core.$strip>;
|
|
478
|
+
type UpsertCourseWorkPupilProgressArgs = z.infer<typeof upsertCourseWorkPupilProgressArgsSchema>;
|
|
479
|
+
type CreateCourseWorkServiceArgs = {
|
|
480
|
+
courseId: string;
|
|
481
|
+
title: string;
|
|
482
|
+
description?: string;
|
|
483
|
+
lessonSlug: string;
|
|
484
|
+
programmeSlug: string;
|
|
485
|
+
unitSlug: string;
|
|
486
|
+
maxPoints: number;
|
|
487
|
+
teacherLoginHint: string;
|
|
488
|
+
};
|
|
310
489
|
|
|
311
|
-
export { CreateAttachmentCallSchema, UPDATABLE_SUBMISSION_STATES, classroomAttachmentEntitySchema, classroomAttachmentSchema, codeSchema, createAnnouncementAttachmentArgsSchema, googleOAuthUserSchema, introProgressSchema, postSubmissionStateSchema, pupilLessonProgressSchema, questionResultSchema, quizProgressSchema, tokenPayloadSchema, upsertPupilLessonProgressArgsSchema, userCredentialsEntitySchema, videoProgressSchema };
|
|
312
|
-
export type { ClassroomAttachment, ClassroomAttachmentEntity, Code, CreateAnnouncementAttachmentArgs, CreateAttachmentCall,
|
|
490
|
+
export { CreateAttachmentCallSchema, PostSubmissionState, UPDATABLE_SUBMISSION_STATES, classroomAttachmentEntitySchema, classroomAttachmentSchema, classroomCourseWorkEntitySchema, codeSchema, courseListItemSchema, courseWorkCreatedResultSchema, courseWorkPupilProgressSchema, createAnnouncementAttachmentArgsSchema, createCourseWorkArgsSchema, googleOAuthUserSchema, introProgressSchema, postSubmissionStateSchema, pupilLessonProgressSchema, questionResultSchema, quizProgressSchema, tokenPayloadSchema, upsertCourseWorkPupilProgressArgsSchema, upsertPupilLessonProgressArgsSchema, userCredentialsEntitySchema, videoProgressSchema };
|
|
491
|
+
export type { ClassroomAttachment, ClassroomAttachmentEntity, ClassroomCourseWorkEntity, Code, CourseListItem, CourseWorkCreatedResult, CourseWorkPupilProgress, CreateAnnouncementAttachmentArgs, CreateAttachmentCall, CreateCourseWorkArgs, CreateCourseWorkServiceArgs, GoogleOAuthUser, PupilLessonProgress, TokenPayload, UpsertCourseWorkPupilProgressArgs, UpsertPupilLessonProgressArgs, UserCredentialsEntity };
|