@oaknational/google-classroom-addon 1.19.2 → 1.21.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.
@@ -1,2 +1,2 @@
1
- import t from"zod";var i=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()}),n=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()}),r=t.string(),e=t.object({accessToken:t.string(),loginHint:t.string(),refreshToken:t.string().optional(),profilePictureUrl:t.string().optional(),email:t.string().optional()}),o=t.object({token:t.string()}),s=t.tuple([i,t.string().min(1),t.string().min(1)]),g=n.extend({attachmentId:t.string(),createdAt:t.string()}),l=t.object({loginHint:t.string(),refreshToken:t.string().optional(),profilePictureUrl:t.string().optional()});export{s as CreateAttachmentCallSchema,g as classroomAttachmentEntitySchema,n as classroomAttachmentSchema,r as codeSchema,i as createAnnouncementAttachmentArgsSchema,e as googleOAuthUserSchema,o as tokenPayloadSchema,l as userCredentialsEntitySchema};
1
+ import t from"zod";var i=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()}),n=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()}),r=t.string(),e=t.object({accessToken:t.string(),loginHint:t.string(),refreshToken:t.string().optional(),profilePictureUrl:t.string().optional(),email:t.string().optional()}),o=t.object({token:t.string()}),s=t.tuple([i,t.string().min(1),t.string().min(1)]),g=n.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()});export{s as CreateAttachmentCallSchema,g as classroomAttachmentEntitySchema,n as classroomAttachmentSchema,r as codeSchema,i as createAnnouncementAttachmentArgsSchema,e as googleOAuthUserSchema,o as tokenPayloadSchema,l as userCredentialsEntitySchema};
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"],"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});\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 },\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"],"names":["createAnnouncementAttachmentArgsSchema","z","object","courseId","string","itemId","addOnToken","title","lessonSlug","programmeSlug","unitSlug","maxPoints","number","optional","classroomAttachmentSchema","postId","id","teacherViewUri","uri","studentViewUri","studentWorkReviewUri","codeSchema","googleOAuthUserSchema","accessToken","loginHint","refreshToken","profilePictureUrl","email","tokenPayloadSchema","token","CreateAttachmentCallSchema","tuple","min","classroomAttachmentEntitySchema","extend","attachmentId","createdAt","userCredentialsEntitySchema"],"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,aAOXC,EAA4Bb,EAAEC,OAAO,CAChDC,SAAUF,EAAEG,SACZW,OAAQd,EAAEG,SACVY,GAAIf,EAAEG,SACNG,MAAON,EAAEG,SACTa,eAAgBhB,EAAEC,OAAO,CACvBgB,IAAKjB,EAAEG,WAETe,eAAgBlB,EAAEC,OAAO,CACvBgB,IAAKjB,EAAEG,WAETgB,qBAAsBnB,EACnBC,OAAO,CACNgB,IAAKjB,EAAEG,WAERS,WACHR,OAAQJ,EAAEG,SACVO,UAAWV,EAAEW,SAASC,aC9BXQ,EAAapB,EAAEG,SAGfkB,EAAwBrB,EAAEC,OAAO,CAC5CqB,YAAatB,EAAEG,SACfoB,UAAWvB,EAAEG,SACbqB,aAAcxB,EAAEG,SAASS,WACzBa,kBAAmBzB,EAAEG,SAASS,WAC9Bc,MAAO1B,EAAEG,SAASS,aAKPe,EAAqB3B,EAAEC,OAAO,CACzC2B,MAAO5B,EAAEG,WAKE0B,EAA6B7B,EAAE8B,MAAM,CAChD/B,EACAC,EAAEG,SAAS4B,IAAI,GACf/B,EAAEG,SAAS4B,IAAI,KCtBJC,EAAkCnB,EAA0BoB,OACvE,CACEC,aAAclC,EAAEG,SAChBgC,UAAWnC,EAAEG,WAQJiC,EAA8BpC,EAAEC,OAAO,CAClDsB,UAAWvB,EAAEG,SACbqB,aAAcxB,EAAEG,SAASS,WACzBa,kBAAmBzB,EAAEG,SAASS"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/types/services/GoogleClassroomClientTypes.ts","../../../src/types/services/GoogleOAuthClientTypes.ts","../../../src/types/services/FirestoreClientTypes.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"],"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"],"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"}
@@ -22,6 +22,7 @@ declare const classroomAttachmentEntitySchema: z.ZodObject<{
22
22
  maxPoints: z.ZodOptional<z.ZodNumber>;
23
23
  attachmentId: z.ZodString;
24
24
  createdAt: z.ZodString;
25
+ teacherLoginHint: z.ZodOptional<z.ZodString>;
25
26
  }, z.core.$strip>;
26
27
  type ClassroomAttachmentEntity = z.infer<typeof classroomAttachmentEntitySchema>;
27
28
 
@@ -34,6 +35,7 @@ declare const createAnnouncementAttachmentArgsSchema: z.ZodObject<{
34
35
  programmeSlug: z.ZodString;
35
36
  unitSlug: z.ZodString;
36
37
  maxPoints: z.ZodOptional<z.ZodNumber>;
38
+ teacherLoginHint: z.ZodOptional<z.ZodString>;
37
39
  }, z.core.$strip>;
38
40
  type CreateAnnouncementAttachmentArgs = z.infer<typeof createAnnouncementAttachmentArgsSchema>;
39
41
 
package/dist/types.d.ts CHANGED
@@ -23,6 +23,7 @@ declare const CreateAttachmentCallSchema: z.ZodTuple<[z.ZodObject<{
23
23
  programmeSlug: z.ZodString;
24
24
  unitSlug: z.ZodString;
25
25
  maxPoints: z.ZodOptional<z.ZodNumber>;
26
+ teacherLoginHint: z.ZodOptional<z.ZodString>;
26
27
  }, z.core.$strip>, z.ZodString, z.ZodString], null>;
27
28
  type CreateAttachmentCall = z.infer<typeof CreateAttachmentCallSchema>;
28
29
 
@@ -44,6 +45,7 @@ declare const classroomAttachmentEntitySchema: z.ZodObject<{
44
45
  maxPoints: z.ZodOptional<z.ZodNumber>;
45
46
  attachmentId: z.ZodString;
46
47
  createdAt: z.ZodString;
48
+ teacherLoginHint: z.ZodOptional<z.ZodString>;
47
49
  }, z.core.$strip>;
48
50
  type ClassroomAttachmentEntity = z.infer<typeof classroomAttachmentEntitySchema>;
49
51
  declare const userCredentialsEntitySchema: z.ZodObject<{
@@ -62,6 +64,7 @@ declare const createAnnouncementAttachmentArgsSchema: z.ZodObject<{
62
64
  programmeSlug: z.ZodString;
63
65
  unitSlug: z.ZodString;
64
66
  maxPoints: z.ZodOptional<z.ZodNumber>;
67
+ teacherLoginHint: z.ZodOptional<z.ZodString>;
65
68
  }, z.core.$strip>;
66
69
  type CreateAnnouncementAttachmentArgs = z.infer<typeof createAnnouncementAttachmentArgsSchema>;
67
70
  declare const classroomAttachmentSchema: z.ZodObject<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oaknational/google-classroom-addon",
3
- "version": "1.19.2",
3
+ "version": "1.21.0",
4
4
  "description": "Components and helpers for the Oak Google Classroom Add-on",
5
5
  "exports": {
6
6
  "./ui": {