@@ -77,13 +77,13 @@ export interface BehaviourTimelinePoint {
7777 end : string ;
7878}
7979export interface BehaviourResponseData {
80- timeline : Array < BehaviourTimelinePoint > ;
80+ timeline : BehaviourTimelinePoint [ ] ;
8181 positive_reasons : Record < string , number > ;
8282 negative_reasons : Record < string , number > ;
83- other_positive : Array < string > ;
84- other_negative : Array < string > ;
85- other_positive_count : Array < Record < string , number > > ;
86- other_negative_count : Array < Record < string , number > > ;
83+ other_positive : string [ ] ;
84+ other_negative : string [ ] ;
85+ other_positive_count : Record < string , number > [ ] ;
86+ other_negative_count : Record < string , number > [ ] ;
8787}
8888export interface BehaviourResponseMeta {
8989 start_date : string ;
@@ -134,7 +134,7 @@ export interface ActivityPoint {
134134 detention_location : string | null ;
135135 detention_type : string | null ;
136136}
137- export type ActivityResponseData = Array < ActivityPoint > ;
137+ export type ActivityResponseData = ActivityPoint [ ] ;
138138interface ActivityResponseMeta {
139139 start_date : string ;
140140 end_date : string ;
@@ -194,13 +194,13 @@ export interface Homework {
194194 allow_attachments : boolean ;
195195 first_seen_date : string | null ;
196196 last_seen_date : string | null ;
197- attachments : Array < unknown > ;
197+ attachments : unknown [ ] ;
198198 has_feedback : boolean ;
199199 } ;
200- validated_links : Array < unknown > ;
201- validated_attachments : Array < ValidatedHomeworkAttachment > ;
200+ validated_links : unknown [ ] ;
201+ validated_attachments : ValidatedHomeworkAttachment [ ] ;
202202}
203- export type HomeworksResponseData = Array < Homework > ;
203+ export type HomeworksResponseData = Homework [ ] ;
204204export interface HomeworksResponseMeta {
205205 start_date : string ;
206206 end_date : string ;
@@ -286,10 +286,10 @@ export interface Badge {
286286 icon : string ;
287287 colour : string ;
288288 created_date : string ;
289- pupil_badges : Array < PupilEvent > ;
289+ pupil_badges : PupilEvent [ ] ;
290290 icon_url : string ;
291291}
292- export type BadgesResponseData = Array < Badge > ;
292+ export type BadgesResponseData = Badge [ ] ;
293293export type BadgesResponseMeta = [ ] ;
294294export type BadgesResponse = ClassChartsResponse <
295295 BadgesResponseData ,
@@ -336,7 +336,7 @@ export interface Detention {
336336 } ;
337337}
338338
339- export type DetentionsData = Array < Detention > ;
339+ export type DetentionsData = Detention [ ] ;
340340
341341export interface DetentionsMeta {
342342 detention_alias_plural : string ;
@@ -357,11 +357,11 @@ export interface Announcement {
357357 sticky : "yes" | "no" ;
358358 state : string | null ;
359359 timestamp : string ;
360- attachments : Array < {
360+ attachments : {
361361 filename : string ;
362362 url : string ;
363- } > ;
364- for_pupils : Array < unknown > ;
363+ } [ ] ;
364+ for_pupils : unknown [ ] ;
365365 comment_visibility : string ;
366366 allow_comments : "yes" | "no" ;
367367 allow_reactions : "yes" | "no" ;
@@ -370,11 +370,11 @@ export interface Announcement {
370370 requires_consent : "yes" | "no" ;
371371 can_change_consent : boolean ;
372372 consent : unknown | null ;
373- pupil_consents : Array < unknown > ;
373+ pupil_consents : unknown [ ] ;
374374}
375375
376376export type AnnouncementsResponse = ClassChartsResponse <
377- Array < Announcement > ,
377+ Announcement [ ] ,
378378 [ ]
379379> ;
380380
@@ -397,7 +397,7 @@ export interface Pupil extends Student {
397397 announcements_count : number ;
398398 messages_count : number ;
399399}
400- export type GetPupilsResponse = Array < Pupil > ;
400+ export type GetPupilsResponse = Pupil [ ] ;
401401
402402export interface GetFullActivityOptions {
403403 /**
@@ -430,8 +430,8 @@ export interface AttendancePeriod {
430430}
431431
432432export interface AttendanceMeta {
433- dates : Array < string > ;
434- sessions : Array < string > ;
433+ dates : string [ ] ;
434+ sessions : string [ ] ;
435435 start_date : string ;
436436 end_date : string ;
437437 percentage : string ;
@@ -480,12 +480,12 @@ export type RewardPurchaseResponse = ClassChartsResponse<
480480
481481export interface PupilFieldsData {
482482 note : string ;
483- fields : Array < {
483+ fields : {
484484 id : number ;
485485 name : string ;
486486 graphic : string ;
487487 value : string ;
488- } > ;
488+ } [ ] ;
489489}
490490
491491export type PupilFieldsResponse = ClassChartsResponse < PupilFieldsData , [ ] > ;
0 commit comments