1
0
Fork 0
mirror of https://github.com/classchartsapi/classcharts-api-js.git synced 2026-05-14 11:58:13 +00:00

chore: document arguments

This commit is contained in:
James Cook 2022-02-06 12:09:37 +00:00
parent bed39222cd
commit 6c38f3c3ea

View file

@ -38,7 +38,13 @@ export interface Student {
detention_alias_plural_uc: string; detention_alias_plural_uc: string;
} }
export interface GetBehaviourOptions { export interface GetBehaviourOptions {
/**
* From date, in format YYYY-MM-DD
*/
from?: string; from?: string;
/**
* To date, in format YYYY-MM-DD
*/
to?: string; to?: string;
} }
export interface BehaviourTimelinePoint { export interface BehaviourTimelinePoint {
@ -58,8 +64,17 @@ export interface BehaviourResponse {
other_negative_count: Array<Record<string, number>>; other_negative_count: Array<Record<string, number>>;
} }
export interface GetActivityOptions { export interface GetActivityOptions {
/**
* From date, in format YYYY-MM-DD
*/
from?: string; from?: string;
/**
* To date, in format YYYY-MM-DD
*/
to?: string; to?: string;
/**
* ID of the last activityPoint (used in pagination)
*/
last_id?: string; last_id?: string;
} }
export interface ActivityPoint { export interface ActivityPoint {
@ -89,8 +104,17 @@ export interface ActivityPoint {
export type ActivityResponse = Array<ActivityPoint>; export type ActivityResponse = Array<ActivityPoint>;
export type DisplayDate = "due_date" | "issue_date"; export type DisplayDate = "due_date" | "issue_date";
export interface GetHomeworkOptions { export interface GetHomeworkOptions {
/**
* Way to sort homeworks
*/
displayDate?: DisplayDate; displayDate?: DisplayDate;
/**
* From date, in format YYYY-MM-DD
*/
fromDate?: string; fromDate?: string;
/**
* To date, in format YYYY-MM-DD
*/
toDate?: string; toDate?: string;
} }
export interface ValidatedHomeworkAttachment { export interface ValidatedHomeworkAttachment {
@ -108,7 +132,7 @@ export interface Homework {
title: string; title: string;
meta_title: string; meta_title: string;
description: string; description: string;
description_raw: string, description_raw: string;
issue_date: string; issue_date: string;
due_date: string; due_date: string;
completion_time_unit: string; completion_time_unit: string;
@ -131,6 +155,9 @@ export interface Homework {
} }
export type HomeworksResponse = Array<Homework>; export type HomeworksResponse = Array<Homework>;
export interface GetLessonsOptions { export interface GetLessonsOptions {
/**
* Date to get lessons for, in format YYYY-MM-DD
*/
date: string; date: string;
} }
export interface Lesson { export interface Lesson {