-
-
Notifications
You must be signed in to change notification settings - Fork 0
Interfaces
Any and all interfaces are exported. The interfaces that are missing the Structure Response subheading aren't too important/isn't the response type of a function.
The lunch menu interface for the <SchoolSoft>.getLunchMenu() function.
export interface LunchMenu {
heading: string;
menu: {
title: string;
lunch: string;
}[];
}{
heading,
menu: [{
title,
lunch
}]
}Keys for the SchoolSoft.News interface.
export interface NewsKeys {
heading: string;
content: string;
date: string;
from: string;
to: string;
}Category and news for the news.
export interface NewsCategoryAndNews {
category: string;
news: NewsKeys[];
}The news interface for the <SchoolSoft>.getNews() function.
export interface News {
[index: number]: NewsCategoryAndNews;
}[{
category,
news: [{
heading,
content,
date,
from,
to
}]
}]Keys for the SchoolSoft.Assignments interface.
export interface AssignmentKeys {
heading: string;
content: string;
date: string;
lesson: string;
teacher: string;
type: string;
id: number;
}The assignments interface for the <SchoolSoft>.getAssignments() function.
export interface Assignments {
upcoming: AssignmentKeys[];
old: AssignmentKeys[];
}{
upcoming: [{
heading,
content,
date,
lesson,
teacher,
type,
id
}],
old: [{
heading,
content,
date,
lesson,
teacher,
type,
id
}]
}The keys for the SchoolSoft.Results interface.
export interface ResultKeys {
heading: string;
comment: string;
description: string;
date: string;
lesson: string;
teacher: string;
type: string;
id: number;
}The results interface for the <SchoolSoft>.getResults() function.
export interface Results {
new: ResultKeys[];
old: ResultKeys[];
}{
new: [{
heading,
comment,
description,
date,
lesson,
teacher,
type,
id
}],
old: [{
heading,
comment,
description,
date,
lesson,
teacher,
type,
id
}]
}Keys for the SchoolSoft.WeeklyPlanning interface.
export interface WeeklyPlanningKeys {
week: number;
duration: string;
content: string;
}Subject and planning for the weekly planning.
export interface WeeklyPlanningSubjectAndPlanning {
subject: string;
planning: WeeklyPlanningKeys[];
}The weekly planning interface for the <SchoolSoft>.getWeeklyPlanning() function.
export interface WeeklyPlanning {
[index: number]: WeeklyPlanningSubjectAndPlanning;
}[{
subject,
planning: [{
week,
duration,
content
}]
}]