@@ -31,7 +31,7 @@ export interface Student {
3131 is_disabled : boolean ;
3232 display_two_way_communications : boolean ;
3333 display_absences : boolean ;
34- can_upload_attachments : string | null ;
34+ can_upload_attachments : boolean | null ;
3535 display_event_badges : boolean ;
3636 display_avatars : boolean ;
3737 display_concern_submission : boolean ;
@@ -123,10 +123,10 @@ export interface ActivityPoint {
123123 custom_class : string | null ;
124124 } ;
125125 pupil_name : string ;
126- lesson_name : string ;
126+ lesson_name : string | null ;
127127 teacher_name : string ;
128128 room_name : string | null ;
129- note : string ;
129+ note : string | null ;
130130 _can_delete : boolean ;
131131 badges : string | undefined ;
132132 detention_date : string | null ;
@@ -138,7 +138,7 @@ export type ActivityResponseData = Array<ActivityPoint>;
138138interface ActivityResponseMeta {
139139 start_date : string ;
140140 end_date : string ;
141- last_id : boolean ;
141+ last_id : number | boolean ;
142142 step_size : string ;
143143 detention_alias_uc : string ;
144144}
@@ -192,8 +192,8 @@ export interface Homework {
192192 mark_relative : number ;
193193 ticked : "yes" | "no" ;
194194 allow_attachments : boolean ;
195- first_seen_date : string ;
196- last_seen_date : string ;
195+ first_seen_date : string | null ;
196+ last_seen_date : string | null ;
197197 attachments : Array < unknown > ;
198198 has_feedback : boolean ;
199199 } ;
@@ -321,7 +321,7 @@ export interface Detention {
321321 id : number ;
322322 name : string ;
323323 } ;
324- } ;
324+ } | null ;
325325 lesson_pupil_behaviour : {
326326 reason : string ;
327327 } ;
@@ -330,7 +330,7 @@ export interface Detention {
330330 first_name : string ;
331331 last_name : string ;
332332 title : string ;
333- } ;
333+ } | null ;
334334 detention_type : {
335335 name : string ;
336336 } ;
@@ -424,7 +424,7 @@ export interface GetAttendanceOptions {
424424export interface AttendancePeriod {
425425 code : string ;
426426 status : "present" | "ignore" ;
427- late_minutes : number ;
427+ late_minutes : number | string ;
428428 lesson_name ?: string ;
429429 room_name ?: string ;
430430}
@@ -435,7 +435,7 @@ export interface AttendanceMeta {
435435 start_date : string ;
436436 end_date : string ;
437437 percentage : string ;
438- percentage_since_august : string ;
438+ percentage_singe_august : string ;
439439}
440440
441441export type AttendanceData = Record < string , Record < string , AttendancePeriod > > ;
@@ -457,7 +457,7 @@ export type RewardsData = {
457457 unable_to_purchase_reason : string ;
458458 once_per_pupil : boolean ;
459459 purchased : boolean ;
460- purchased_count : string ;
460+ purchased_count : string | number ;
461461 price_balance_difference : number ;
462462} [ ] ;
463463
0 commit comments