@oaknational/google-classroom-addon 1.26.0 → 1.27.1
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 +1 -1
- 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 +1 -1
- 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 +8 -0
- package/dist/types.d.ts +12 -0
- package/package.json +1 -1
package/dist/esm/types/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import t from"zod";var
|
|
1
|
+
import t from"zod";var n=t.object({courseId:t.string(),itemId:t.string(),addOnToken:t.string(),title:t.string(),lessonSlug:t.string(),programmeSlug:t.string(),unitSlug:t.string(),maxPoints:t.number().optional(),teacherLoginHint:t.string().optional()}),i=t.object({courseId:t.string(),postId:t.string(),id:t.string(),title:t.string(),teacherViewUri:t.object({uri:t.string()}),studentViewUri:t.object({uri:t.string()}),studentWorkReviewUri:t.object({uri:t.string()}).optional(),itemId:t.string(),maxPoints:t.number().optional()}),o=t.string(),e=t.object({accessToken:t.string(),loginHint:t.string(),refreshToken:t.string().optional(),profilePictureUrl:t.string().optional(),email:t.string().optional()}),r=t.object({token:t.string()}),s=t.tuple([n,t.string().min(1),t.string().min(1)]),a=i.extend({attachmentId:t.string(),createdAt:t.string(),teacherLoginHint:t.string().optional()}),l=t.object({loginHint:t.string(),refreshToken:t.string().optional(),profilePictureUrl:t.string().optional()}),g=["NEW","CREATED","RECLAIMED_BY_STUDENT"],u=t.enum(["correct","incorrect"]),p=t.union([t.string(),t.number(),t.array(t.union([t.string(),t.number()]).nullable()),t.null()]),d=t.object({mode:t.enum(["init","incomplete","input","grading","feedback"]),grade:t.number(),pupilAnswer:p.optional().nullable(),feedback:t.union([u,t.array(u)]).optional(),isPartiallyCorrect:t.boolean().optional(),correctAnswer:t.union([t.string(),t.array(t.union([t.string(),t.undefined()]))]).optional(),usedHint:t.boolean().optional()}),c=t.object({grade:t.number(),numQuestions:t.number(),isComplete:t.boolean(),questionResults:t.array(d).optional()}),b=t.object({played:t.boolean(),duration:t.number(),timeElapsed:t.number(),isComplete:t.boolean()}),m=t.object({worksheetAvailable:t.boolean().optional(),worksheetDownloaded:t.boolean().optional(),isComplete:t.boolean()}),I=t.object({submissionId:t.string(),attachmentId:t.string(),courseId:t.string(),itemId:t.string(),pupilLoginHint:t.string(),starterQuiz:c.optional(),exitQuiz:c.optional(),video:b.optional(),intro:m.optional(),updatedAt:t.string(),createdAt:t.string()}),j=t.object({submissionId:t.string(),attachmentId:t.string(),courseId:t.string(),itemId:t.string(),pupilLoginHint:t.string(),starterQuiz:c.optional(),exitQuiz:c.optional(),video:b.optional(),intro:m.optional()});export{s as CreateAttachmentCallSchema,g as UPDATABLE_SUBMISSION_STATES,a as classroomAttachmentEntitySchema,i as classroomAttachmentSchema,o as codeSchema,n as createAnnouncementAttachmentArgsSchema,e as googleOAuthUserSchema,m as introProgressSchema,I as pupilLessonProgressSchema,d as questionResultSchema,c as quizProgressSchema,r as tokenPayloadSchema,j as upsertPupilLessonProgressArgsSchema,l as userCredentialsEntitySchema,b as videoProgressSchema};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/types/services/GoogleClassroomClientTypes.ts","../../../src/types/services/GoogleOAuthClientTypes.ts","../../../src/types/services/FirestoreClientTypes.ts","../../../src/types/services/PupilLessonProgressTypes.ts"],"sourcesContent":["import z from \"zod\";\n\nexport const createAnnouncementAttachmentArgsSchema = z.object({\n courseId: z.string(),\n itemId: z.string(),\n addOnToken: z.string(),\n title: z.string(),\n lessonSlug: z.string(),\n programmeSlug: z.string(),\n unitSlug: z.string(),\n maxPoints: z.number().optional(),\n teacherLoginHint: z.string().optional(),\n});\n\nexport type CreateAnnouncementAttachmentArgs = z.infer<\n typeof createAnnouncementAttachmentArgsSchema\n>;\n\nexport const classroomAttachmentSchema = z.object({\n courseId: z.string(),\n postId: z.string(),\n id: z.string(),\n title: z.string(),\n teacherViewUri: z.object({\n uri: z.string(),\n }),\n studentViewUri: z.object({\n uri: z.string(),\n }),\n studentWorkReviewUri: z\n .object({\n uri: z.string(),\n })\n .optional(),\n itemId: z.string(),\n maxPoints: z.number().optional(),\n});\n\nexport type ClassroomAttachment = z.infer<typeof classroomAttachmentSchema>;\n","import z from \"zod\";\n\nimport { createAnnouncementAttachmentArgsSchema } from \"./GoogleClassroomClientTypes\";\n\nexport const codeSchema = z.string();\nexport type Code = z.infer<typeof codeSchema>;\n\nexport const googleOAuthUserSchema = z.object({\n accessToken: z.string(),\n loginHint: z.string(),\n refreshToken: z.string().optional(),\n profilePictureUrl: z.string().optional(),\n email: z.string().optional(),\n});\n\nexport type GoogleOAuthUser = z.infer<typeof googleOAuthUserSchema>;\n\nexport const tokenPayloadSchema = z.object({\n token: z.string(),\n});\n\nexport type TokenPayload = z.infer<typeof tokenPayloadSchema>;\n\nexport const CreateAttachmentCallSchema = z.tuple([\n createAnnouncementAttachmentArgsSchema,\n z.string().min(1), // accessToken\n z.string().min(1), // session\n]);\n\nexport type CreateAttachmentCall = z.infer<typeof CreateAttachmentCallSchema>;\n","import z from \"zod\";\n\nimport { classroomAttachmentSchema } from \"./GoogleClassroomClientTypes\";\n\nexport const classroomAttachmentEntitySchema = classroomAttachmentSchema.extend(\n {\n attachmentId: z.string(),\n createdAt: z.string(),\n teacherLoginHint: z.string().optional(),\n },\n);\n\nexport type ClassroomAttachmentEntity = z.infer<\n typeof classroomAttachmentEntitySchema\n>;\n\nexport const userCredentialsEntitySchema = z.object({\n loginHint: z.string(),\n refreshToken: z.string().optional(),\n profilePictureUrl: z.string().optional(),\n});\n\nexport type UserCredentialsEntity = z.infer<typeof userCredentialsEntitySchema>;\n","import z from \"zod\";\n\nexport const UPDATABLE_SUBMISSION_STATES = [\n \"NEW\",\n \"CREATED\",\n \"RECLAIMED_BY_STUDENT\",\n] as const;\n\nexport type UpdatableSubmissionState =\n (typeof UPDATABLE_SUBMISSION_STATES)[number];\n\nconst questionFeedbackSchema = z.enum([\"correct\", \"incorrect\"]);\n\nconst pupilAnswerSchema = z.union([\n z.string(),\n z.number(),\n z.array(z.union([z.string(), z.number()]).nullable()),\n z.null(),\n]);\n\nexport const questionResultSchema = z.object({\n mode: z.enum([\"init\", \"incomplete\", \"input\", \"grading\", \"feedback\"]),\n grade: z.number(),\n pupilAnswer: pupilAnswerSchema.optional().nullable(),\n feedback: z\n .union([questionFeedbackSchema, z.array(questionFeedbackSchema)])\n .optional(),\n isPartiallyCorrect: z.boolean().optional(),\n});\n\nexport const quizProgressSchema = z.object({\n grade: z.number(),\n numQuestions: z.number(),\n isComplete: z.boolean(),\n questionResults: z.array(questionResultSchema).optional(),\n});\n\nexport const videoProgressSchema = z.object({\n played: z.boolean(),\n duration: z.number(),\n timeElapsed: z.number(),\n isComplete: z.boolean(),\n});\n\nexport const introProgressSchema = z.object({\n worksheetAvailable: z.boolean().optional(),\n worksheetDownloaded: z.boolean().optional(),\n isComplete: z.boolean(),\n});\n\nexport const pupilLessonProgressSchema = z.object({\n submissionId: z.string(),\n attachmentId: z.string(),\n courseId: z.string(),\n itemId: z.string(),\n pupilLoginHint: z.string(),\n\n starterQuiz: quizProgressSchema.optional(),\n exitQuiz: quizProgressSchema.optional(),\n video: videoProgressSchema.optional(),\n intro: introProgressSchema.optional(),\n\n updatedAt: z.string(),\n createdAt: z.string(),\n});\n\nexport type PupilLessonProgress = z.infer<typeof pupilLessonProgressSchema>;\n\nexport const upsertPupilLessonProgressArgsSchema = z.object({\n submissionId: z.string(),\n attachmentId: z.string(),\n courseId: z.string(),\n itemId: z.string(),\n pupilLoginHint: z.string(),\n\n starterQuiz: quizProgressSchema.optional(),\n exitQuiz: quizProgressSchema.optional(),\n video: videoProgressSchema.optional(),\n intro: introProgressSchema.optional(),\n});\n\nexport type UpsertPupilLessonProgressArgs = z.infer<\n typeof upsertPupilLessonProgressArgsSchema\n>;\n"],"names":["createAnnouncementAttachmentArgsSchema","z","object","courseId","string","itemId","addOnToken","title","lessonSlug","programmeSlug","unitSlug","maxPoints","number","optional","teacherLoginHint","classroomAttachmentSchema","postId","id","teacherViewUri","uri","studentViewUri","studentWorkReviewUri","codeSchema","googleOAuthUserSchema","accessToken","loginHint","refreshToken","profilePictureUrl","email","tokenPayloadSchema","token","CreateAttachmentCallSchema","tuple","min","classroomAttachmentEntitySchema","extend","attachmentId","createdAt","userCredentialsEntitySchema","UPDATABLE_SUBMISSION_STATES","questionFeedbackSchema","enum","pupilAnswerSchema","union","array","nullable","null","questionResultSchema","mode","grade","pupilAnswer","feedback","isPartiallyCorrect","boolean","quizProgressSchema","numQuestions","isComplete","questionResults","videoProgressSchema","played","duration","timeElapsed","introProgressSchema","worksheetAvailable","worksheetDownloaded","pupilLessonProgressSchema","submissionId","pupilLoginHint","starterQuiz","exitQuiz","video","intro","updatedAt","upsertPupilLessonProgressArgsSchema"],"mappings":"mBAEO,IAAMA,EAAyCC,EAAEC,OAAO,CAC7DC,SAAUF,EAAEG,SACZC,OAAQJ,EAAEG,SACVE,WAAYL,EAAEG,SACdG,MAAON,EAAEG,SACTI,WAAYP,EAAEG,SACdK,cAAeR,EAAEG,SACjBM,SAAUT,EAAEG,SACZO,UAAWV,EAAEW,SAASC,WACtBC,iBAAkBb,EAAEG,SAASS,aAOlBE,EAA4Bd,EAAEC,OAAO,CAChDC,SAAUF,EAAEG,SACZY,OAAQf,EAAEG,SACVa,GAAIhB,EAAEG,SACNG,MAAON,EAAEG,SACTc,eAAgBjB,EAAEC,OAAO,CACvBiB,IAAKlB,EAAEG,WAETgB,eAAgBnB,EAAEC,OAAO,CACvBiB,IAAKlB,EAAEG,WAETiB,qBAAsBpB,EACnBC,OAAO,CACNiB,IAAKlB,EAAEG,WAERS,WACHR,OAAQJ,EAAEG,SACVO,UAAWV,EAAEW,SAASC,aC/BXS,EAAarB,EAAEG,SAGfmB,EAAwBtB,EAAEC,OAAO,CAC5CsB,YAAavB,EAAEG,SACfqB,UAAWxB,EAAEG,SACbsB,aAAczB,EAAEG,SAASS,WACzBc,kBAAmB1B,EAAEG,SAASS,WAC9Be,MAAO3B,EAAEG,SAASS,aAKPgB,EAAqB5B,EAAEC,OAAO,CACzC4B,MAAO7B,EAAEG,WAKE2B,EAA6B9B,EAAE+B,MAAM,CAChDhC,EACAC,EAAEG,SAAS6B,IAAI,GACfhC,EAAEG,SAAS6B,IAAI,KCtBJC,EAAkCnB,EAA0BoB,OACvE,CACEC,aAAcnC,EAAEG,SAChBiC,UAAWpC,EAAEG,SACbU,iBAAkBb,EAAEG,SAASS,aAQpByB,EAA8BrC,EAAEC,OAAO,CAClDuB,UAAWxB,EAAEG,SACbsB,aAAczB,EAAEG,SAASS,WACzBc,kBAAmB1B,EAAEG,SAASS,aCjBnB0B,EAA8B,CACzC,MACA,UACA,wBAMIC,EAAyBvC,EAAEwC,KAAK,CAAC,UAAW,cAE5CC,EAAoBzC,EAAE0C,MAAM,CAChC1C,EAAEG,SACFH,EAAEW,SACFX,EAAE2C,MAAM3C,EAAE0C,MAAM,CAAC1C,EAAEG,SAAUH,EAAEW,WAAWiC,YAC1C5C,EAAE6C,SAGSC,EAAuB9C,EAAEC,OAAO,CAC3C8C,KAAM/C,EAAEwC,KAAK,CAAC,OAAQ,aAAc,QAAS,UAAW,aACxDQ,MAAOhD,EAAEW,SACTsC,YAAaR,EAAkB7B,WAAWgC,WAC1CM,SAAUlD,EACP0C,MAAM,CAACH,EAAwBvC,EAAE2C,MAAMJ,KACvC3B,WACHuC,mBAAoBnD,EAAEoD,UAAUxC,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/types/services/GoogleClassroomClientTypes.ts","../../../src/types/services/GoogleOAuthClientTypes.ts","../../../src/types/services/FirestoreClientTypes.ts","../../../src/types/services/PupilLessonProgressTypes.ts"],"sourcesContent":["import z from \"zod\";\n\nexport const createAnnouncementAttachmentArgsSchema = z.object({\n courseId: z.string(),\n itemId: z.string(),\n addOnToken: z.string(),\n title: z.string(),\n lessonSlug: z.string(),\n programmeSlug: z.string(),\n unitSlug: z.string(),\n maxPoints: z.number().optional(),\n teacherLoginHint: z.string().optional(),\n});\n\nexport type CreateAnnouncementAttachmentArgs = z.infer<\n typeof createAnnouncementAttachmentArgsSchema\n>;\n\nexport const classroomAttachmentSchema = z.object({\n courseId: z.string(),\n postId: z.string(),\n id: z.string(),\n title: z.string(),\n teacherViewUri: z.object({\n uri: z.string(),\n }),\n studentViewUri: z.object({\n uri: z.string(),\n }),\n studentWorkReviewUri: z\n .object({\n uri: z.string(),\n })\n .optional(),\n itemId: z.string(),\n maxPoints: z.number().optional(),\n});\n\nexport type ClassroomAttachment = z.infer<typeof classroomAttachmentSchema>;\n","import z from \"zod\";\n\nimport { createAnnouncementAttachmentArgsSchema } from \"./GoogleClassroomClientTypes\";\n\nexport const codeSchema = z.string();\nexport type Code = z.infer<typeof codeSchema>;\n\nexport const googleOAuthUserSchema = z.object({\n accessToken: z.string(),\n loginHint: z.string(),\n refreshToken: z.string().optional(),\n profilePictureUrl: z.string().optional(),\n email: z.string().optional(),\n});\n\nexport type GoogleOAuthUser = z.infer<typeof googleOAuthUserSchema>;\n\nexport const tokenPayloadSchema = z.object({\n token: z.string(),\n});\n\nexport type TokenPayload = z.infer<typeof tokenPayloadSchema>;\n\nexport const CreateAttachmentCallSchema = z.tuple([\n createAnnouncementAttachmentArgsSchema,\n z.string().min(1), // accessToken\n z.string().min(1), // session\n]);\n\nexport type CreateAttachmentCall = z.infer<typeof CreateAttachmentCallSchema>;\n","import z from \"zod\";\n\nimport { classroomAttachmentSchema } from \"./GoogleClassroomClientTypes\";\n\nexport const classroomAttachmentEntitySchema = classroomAttachmentSchema.extend(\n {\n attachmentId: z.string(),\n createdAt: z.string(),\n teacherLoginHint: z.string().optional(),\n },\n);\n\nexport type ClassroomAttachmentEntity = z.infer<\n typeof classroomAttachmentEntitySchema\n>;\n\nexport const userCredentialsEntitySchema = z.object({\n loginHint: z.string(),\n refreshToken: z.string().optional(),\n profilePictureUrl: z.string().optional(),\n});\n\nexport type UserCredentialsEntity = z.infer<typeof userCredentialsEntitySchema>;\n","import z from \"zod\";\n\nexport const UPDATABLE_SUBMISSION_STATES = [\n \"NEW\",\n \"CREATED\",\n \"RECLAIMED_BY_STUDENT\",\n] as const;\n\nexport type UpdatableSubmissionState =\n (typeof UPDATABLE_SUBMISSION_STATES)[number];\n\nconst questionFeedbackSchema = z.enum([\"correct\", \"incorrect\"]);\n\nconst pupilAnswerSchema = z.union([\n z.string(),\n z.number(),\n z.array(z.union([z.string(), z.number()]).nullable()),\n z.null(),\n]);\n\nexport const questionResultSchema = z.object({\n mode: z.enum([\"init\", \"incomplete\", \"input\", \"grading\", \"feedback\"]),\n grade: z.number(),\n pupilAnswer: pupilAnswerSchema.optional().nullable(),\n feedback: z\n .union([questionFeedbackSchema, z.array(questionFeedbackSchema)])\n .optional(),\n isPartiallyCorrect: z.boolean().optional(),\n correctAnswer: z\n .union([z.string(), z.array(z.union([z.string(), z.undefined()]))])\n .optional(),\n usedHint: z.boolean().optional(),\n});\n\nexport const quizProgressSchema = z.object({\n grade: z.number(),\n numQuestions: z.number(),\n isComplete: z.boolean(),\n questionResults: z.array(questionResultSchema).optional(),\n});\n\nexport const videoProgressSchema = z.object({\n played: z.boolean(),\n duration: z.number(),\n timeElapsed: z.number(),\n isComplete: z.boolean(),\n});\n\nexport const introProgressSchema = z.object({\n worksheetAvailable: z.boolean().optional(),\n worksheetDownloaded: z.boolean().optional(),\n isComplete: z.boolean(),\n});\n\nexport const pupilLessonProgressSchema = z.object({\n submissionId: z.string(),\n attachmentId: z.string(),\n courseId: z.string(),\n itemId: z.string(),\n pupilLoginHint: z.string(),\n\n starterQuiz: quizProgressSchema.optional(),\n exitQuiz: quizProgressSchema.optional(),\n video: videoProgressSchema.optional(),\n intro: introProgressSchema.optional(),\n\n updatedAt: z.string(),\n createdAt: z.string(),\n});\n\nexport type PupilLessonProgress = z.infer<typeof pupilLessonProgressSchema>;\n\nexport const upsertPupilLessonProgressArgsSchema = z.object({\n submissionId: z.string(),\n attachmentId: z.string(),\n courseId: z.string(),\n itemId: z.string(),\n pupilLoginHint: z.string(),\n\n starterQuiz: quizProgressSchema.optional(),\n exitQuiz: quizProgressSchema.optional(),\n video: videoProgressSchema.optional(),\n intro: introProgressSchema.optional(),\n});\n\nexport type UpsertPupilLessonProgressArgs = z.infer<\n typeof upsertPupilLessonProgressArgsSchema\n>;\n"],"names":["createAnnouncementAttachmentArgsSchema","z","object","courseId","string","itemId","addOnToken","title","lessonSlug","programmeSlug","unitSlug","maxPoints","number","optional","teacherLoginHint","classroomAttachmentSchema","postId","id","teacherViewUri","uri","studentViewUri","studentWorkReviewUri","codeSchema","googleOAuthUserSchema","accessToken","loginHint","refreshToken","profilePictureUrl","email","tokenPayloadSchema","token","CreateAttachmentCallSchema","tuple","min","classroomAttachmentEntitySchema","extend","attachmentId","createdAt","userCredentialsEntitySchema","UPDATABLE_SUBMISSION_STATES","questionFeedbackSchema","enum","pupilAnswerSchema","union","array","nullable","null","questionResultSchema","mode","grade","pupilAnswer","feedback","isPartiallyCorrect","boolean","correctAnswer","undefined","usedHint","quizProgressSchema","numQuestions","isComplete","questionResults","videoProgressSchema","played","duration","timeElapsed","introProgressSchema","worksheetAvailable","worksheetDownloaded","pupilLessonProgressSchema","submissionId","pupilLoginHint","starterQuiz","exitQuiz","video","intro","updatedAt","upsertPupilLessonProgressArgsSchema"],"mappings":"mBAEO,IAAMA,EAAyCC,EAAEC,OAAO,CAC7DC,SAAUF,EAAEG,SACZC,OAAQJ,EAAEG,SACVE,WAAYL,EAAEG,SACdG,MAAON,EAAEG,SACTI,WAAYP,EAAEG,SACdK,cAAeR,EAAEG,SACjBM,SAAUT,EAAEG,SACZO,UAAWV,EAAEW,SAASC,WACtB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WAC7B4D,MAAOZ,EAAoBhD,WAC3B6D,MAAOT,EAAoBpD"}
|
package/dist/services.d.ts
CHANGED
|
@@ -68,6 +68,8 @@ declare const pupilLessonProgressSchema: z.ZodObject<{
|
|
|
68
68
|
incorrect: "incorrect";
|
|
69
69
|
}>>]>>;
|
|
70
70
|
isPartiallyCorrect: z.ZodOptional<z.ZodBoolean>;
|
|
71
|
+
correctAnswer: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodUndefined]>>]>>;
|
|
72
|
+
usedHint: z.ZodOptional<z.ZodBoolean>;
|
|
71
73
|
}, z.core.$strip>>>;
|
|
72
74
|
}, z.core.$strip>>;
|
|
73
75
|
exitQuiz: z.ZodOptional<z.ZodObject<{
|
|
@@ -92,6 +94,8 @@ declare const pupilLessonProgressSchema: z.ZodObject<{
|
|
|
92
94
|
incorrect: "incorrect";
|
|
93
95
|
}>>]>>;
|
|
94
96
|
isPartiallyCorrect: z.ZodOptional<z.ZodBoolean>;
|
|
97
|
+
correctAnswer: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodUndefined]>>]>>;
|
|
98
|
+
usedHint: z.ZodOptional<z.ZodBoolean>;
|
|
95
99
|
}, z.core.$strip>>>;
|
|
96
100
|
}, z.core.$strip>>;
|
|
97
101
|
video: z.ZodOptional<z.ZodObject<{
|
|
@@ -137,6 +141,8 @@ declare const upsertPupilLessonProgressArgsSchema: z.ZodObject<{
|
|
|
137
141
|
incorrect: "incorrect";
|
|
138
142
|
}>>]>>;
|
|
139
143
|
isPartiallyCorrect: z.ZodOptional<z.ZodBoolean>;
|
|
144
|
+
correctAnswer: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodUndefined]>>]>>;
|
|
145
|
+
usedHint: z.ZodOptional<z.ZodBoolean>;
|
|
140
146
|
}, z.core.$strip>>>;
|
|
141
147
|
}, z.core.$strip>>;
|
|
142
148
|
exitQuiz: z.ZodOptional<z.ZodObject<{
|
|
@@ -161,6 +167,8 @@ declare const upsertPupilLessonProgressArgsSchema: z.ZodObject<{
|
|
|
161
167
|
incorrect: "incorrect";
|
|
162
168
|
}>>]>>;
|
|
163
169
|
isPartiallyCorrect: z.ZodOptional<z.ZodBoolean>;
|
|
170
|
+
correctAnswer: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodUndefined]>>]>>;
|
|
171
|
+
usedHint: z.ZodOptional<z.ZodBoolean>;
|
|
164
172
|
}, z.core.$strip>>>;
|
|
165
173
|
}, z.core.$strip>>;
|
|
166
174
|
video: z.ZodOptional<z.ZodObject<{
|
package/dist/types.d.ts
CHANGED
|
@@ -106,6 +106,8 @@ declare const questionResultSchema: z.ZodObject<{
|
|
|
106
106
|
incorrect: "incorrect";
|
|
107
107
|
}>>]>>;
|
|
108
108
|
isPartiallyCorrect: z.ZodOptional<z.ZodBoolean>;
|
|
109
|
+
correctAnswer: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodUndefined]>>]>>;
|
|
110
|
+
usedHint: z.ZodOptional<z.ZodBoolean>;
|
|
109
111
|
}, z.core.$strip>;
|
|
110
112
|
declare const quizProgressSchema: z.ZodObject<{
|
|
111
113
|
grade: z.ZodNumber;
|
|
@@ -129,6 +131,8 @@ declare const quizProgressSchema: z.ZodObject<{
|
|
|
129
131
|
incorrect: "incorrect";
|
|
130
132
|
}>>]>>;
|
|
131
133
|
isPartiallyCorrect: z.ZodOptional<z.ZodBoolean>;
|
|
134
|
+
correctAnswer: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodUndefined]>>]>>;
|
|
135
|
+
usedHint: z.ZodOptional<z.ZodBoolean>;
|
|
132
136
|
}, z.core.$strip>>>;
|
|
133
137
|
}, z.core.$strip>;
|
|
134
138
|
declare const videoProgressSchema: z.ZodObject<{
|
|
@@ -170,6 +174,8 @@ declare const pupilLessonProgressSchema: z.ZodObject<{
|
|
|
170
174
|
incorrect: "incorrect";
|
|
171
175
|
}>>]>>;
|
|
172
176
|
isPartiallyCorrect: z.ZodOptional<z.ZodBoolean>;
|
|
177
|
+
correctAnswer: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodUndefined]>>]>>;
|
|
178
|
+
usedHint: z.ZodOptional<z.ZodBoolean>;
|
|
173
179
|
}, z.core.$strip>>>;
|
|
174
180
|
}, z.core.$strip>>;
|
|
175
181
|
exitQuiz: z.ZodOptional<z.ZodObject<{
|
|
@@ -194,6 +200,8 @@ declare const pupilLessonProgressSchema: z.ZodObject<{
|
|
|
194
200
|
incorrect: "incorrect";
|
|
195
201
|
}>>]>>;
|
|
196
202
|
isPartiallyCorrect: z.ZodOptional<z.ZodBoolean>;
|
|
203
|
+
correctAnswer: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodUndefined]>>]>>;
|
|
204
|
+
usedHint: z.ZodOptional<z.ZodBoolean>;
|
|
197
205
|
}, z.core.$strip>>>;
|
|
198
206
|
}, z.core.$strip>>;
|
|
199
207
|
video: z.ZodOptional<z.ZodObject<{
|
|
@@ -239,6 +247,8 @@ declare const upsertPupilLessonProgressArgsSchema: z.ZodObject<{
|
|
|
239
247
|
incorrect: "incorrect";
|
|
240
248
|
}>>]>>;
|
|
241
249
|
isPartiallyCorrect: z.ZodOptional<z.ZodBoolean>;
|
|
250
|
+
correctAnswer: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodUndefined]>>]>>;
|
|
251
|
+
usedHint: z.ZodOptional<z.ZodBoolean>;
|
|
242
252
|
}, z.core.$strip>>>;
|
|
243
253
|
}, z.core.$strip>>;
|
|
244
254
|
exitQuiz: z.ZodOptional<z.ZodObject<{
|
|
@@ -263,6 +273,8 @@ declare const upsertPupilLessonProgressArgsSchema: z.ZodObject<{
|
|
|
263
273
|
incorrect: "incorrect";
|
|
264
274
|
}>>]>>;
|
|
265
275
|
isPartiallyCorrect: z.ZodOptional<z.ZodBoolean>;
|
|
276
|
+
correctAnswer: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodUndefined]>>]>>;
|
|
277
|
+
usedHint: z.ZodOptional<z.ZodBoolean>;
|
|
266
278
|
}, z.core.$strip>>>;
|
|
267
279
|
}, z.core.$strip>>;
|
|
268
280
|
video: z.ZodOptional<z.ZodObject<{
|