classcharts-api
Advanced tools
Comparing version 0.4.0 to 0.4.1
import { RequestOptions } from "undici/types/dispatcher"; | ||
import { ActivityResponse, AnnoucementsResponse, BadgesResponse, BehaviourResponse, DetentionsResponse, GetActivityOptions, GetBehaviourOptions, GetHomeworkOptions, GetLessonsOptions, HomeworksResponse, LessonsResponse, Student } from "./types"; | ||
import { ActivityResponse, AnnouncementsResponse, BadgesResponse, BehaviourResponse, DetentionsResponse, GetActivityOptions, GetBehaviourOptions, GetHomeworkOptions, GetLessonsOptions, HomeworksResponse, LessonsResponse, Student } from "./types"; | ||
/** | ||
@@ -63,6 +63,6 @@ * The base client | ||
/** | ||
* Lists the logged in student's annoucements | ||
* @returns Array of annoucements | ||
* Lists the logged in student's announcements | ||
* @returns Array of announcements | ||
*/ | ||
listAnnoucements(): Promise<AnnoucementsResponse>; | ||
listAnnouncements(): Promise<AnnouncementsResponse>; | ||
/** | ||
@@ -69,0 +69,0 @@ * Gets the logged in student's detentions |
@@ -178,7 +178,7 @@ "use strict"; | ||
/** | ||
* Lists the logged in student's annoucements | ||
* @returns Array of annoucements | ||
* Lists the logged in student's announcements | ||
* @returns Array of announcements | ||
*/ | ||
async listAnnoucements() { | ||
return await this.makeAuthedRequest(consts_1.API_BASE + "/annoucements/" + this.studentId, { | ||
async listAnnouncements() { | ||
return await this.makeAuthedRequest(consts_1.API_BASE + "/announcements/" + this.studentId, { | ||
method: "GET", | ||
@@ -185,0 +185,0 @@ }); |
@@ -251,3 +251,3 @@ declare type BooleanHumean = "yes" | "no"; | ||
export declare type DetentionsResponse = Array<Detention>; | ||
export interface Annoucement { | ||
export interface Announcement { | ||
id: number; | ||
@@ -277,3 +277,3 @@ title: string; | ||
} | ||
export declare type AnnoucementsResponse = Array<Annoucement>; | ||
export declare type AnnouncementsResponse = Array<Announcement>; | ||
export {}; |
{ | ||
"name": "classcharts-api", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19494