mirror of
https://github.com/classchartsapi/classcharts-api-js.git
synced 2026-05-14 11:58:13 +00:00
chore: format
This commit is contained in:
parent
bdd8a0f379
commit
a697c85c8b
1 changed files with 26 additions and 14 deletions
34
src/types.ts
34
src/types.ts
|
|
@ -112,7 +112,13 @@ export interface GetActivityOptions {
|
||||||
|
|
||||||
export interface ActivityPoint {
|
export interface ActivityPoint {
|
||||||
id: number;
|
id: number;
|
||||||
type: "detention" | "notice" | "attendance_event" | "question" | "event" | "behaviour"
|
type:
|
||||||
|
| "detention"
|
||||||
|
| "notice"
|
||||||
|
| "attendance_event"
|
||||||
|
| "question"
|
||||||
|
| "event"
|
||||||
|
| "behaviour";
|
||||||
polarity: "positive" | "blank" | "negative" | null;
|
polarity: "positive" | "blank" | "negative" | null;
|
||||||
reason: string;
|
reason: string;
|
||||||
score: number;
|
score: number;
|
||||||
|
|
@ -120,7 +126,13 @@ export interface ActivityPoint {
|
||||||
timestamp_custom_time: string | null;
|
timestamp_custom_time: string | null;
|
||||||
style: {
|
style: {
|
||||||
border_color: string | null;
|
border_color: string | null;
|
||||||
custom_class: "notice-color" | "colour-orange" | "colour-blue" | "colour-purple" | "colour-green" | null;
|
custom_class:
|
||||||
|
| "notice-color"
|
||||||
|
| "colour-orange"
|
||||||
|
| "colour-blue"
|
||||||
|
| "colour-purple"
|
||||||
|
| "colour-green"
|
||||||
|
| null;
|
||||||
};
|
};
|
||||||
pupil_name: string;
|
pupil_name: string;
|
||||||
lesson_name: string | null;
|
lesson_name: string | null;
|
||||||
|
|
@ -366,19 +378,19 @@ export type DetentionsResponse = ClassChartsResponse<
|
||||||
>;
|
>;
|
||||||
|
|
||||||
export interface AnnouncementConsent {
|
export interface AnnouncementConsent {
|
||||||
consent_given: "yes" | "no"
|
consent_given: "yes" | "no";
|
||||||
comment: string | null
|
comment: string | null;
|
||||||
parent_name: string
|
parent_name: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface AnnouncementPupilConsent {
|
export interface AnnouncementPupilConsent {
|
||||||
pupil: {
|
pupil: {
|
||||||
id: string
|
id: string;
|
||||||
first_name: string
|
first_name: string;
|
||||||
last_name: string
|
last_name: string;
|
||||||
}
|
};
|
||||||
can_change_consent: boolean
|
can_change_consent: boolean;
|
||||||
consent: AnnouncementConsent | null
|
consent: AnnouncementConsent | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Announcement {
|
export interface Announcement {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue