From fb45ed5f084afda925efd51c698caebef384fbda Mon Sep 17 00:00:00 2001 From: Veloi <85405932+veloii@users.noreply.github.com> Date: Mon, 18 Sep 2023 17:59:34 +0100 Subject: [PATCH] Update baseClient.ts --- src/core/baseClient.ts | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/src/core/baseClient.ts b/src/core/baseClient.ts index 0f040d0..b243d15 100644 --- a/src/core/baseClient.ts +++ b/src/core/baseClient.ts @@ -16,8 +16,6 @@ import type { HomeworksResponse, LessonsResponse, PupilFieldsResponse, - RewardPurchaseResponse, - RewardsResponse, } from "../types.ts"; import { PING_INTERVAL } from "../utils/consts.ts"; @@ -305,37 +303,6 @@ export class BaseClient { ) ); } - /** - * Gets the current student's rewards shop - * @returns Array of purchasable items - */ - async getRewards(): Promise { - return ( - await this.makeAuthedRequest( - this.API_BASE + "/rewards/" + this.studentId, - { - method: "GET", - }, - ) - ); - } - /** - * Purchase a reward item from the current student's rewards shop - * @param itemId number - * @returns An object containg balence and id - */ - async postRewardPurchase(itemId: number): Promise { - return ( - await this.makeAuthedRequest( - this.API_BASE + "/purchase/" + itemId, - { - method: "POST", - body: `pupil_id=${this.studentId}` - } - ) - ) - } - /** * Gets the current student's pupil fields * @returns Array of stats