diff --git a/scripts/build_npm.ts b/scripts/build_npm.ts index 0d02947..59a1ca3 100644 --- a/scripts/build_npm.ts +++ b/scripts/build_npm.ts @@ -5,7 +5,7 @@ if (!Deno.args[0]) throw new Error("No version specified"); await emptyDir("./npm"); await build({ - entryPoints: ["./mod.ts"], + entryPoints: ["./mod.ts", "./src/core/baseClient.ts"], outDir: "./npm", shims: { deno: true, diff --git a/src/core/baseClient.ts b/src/core/baseClient.ts index d88d620..af8de63 100644 --- a/src/core/baseClient.ts +++ b/src/core/baseClient.ts @@ -20,7 +20,6 @@ import { PING_INTERVAL } from "../utils/consts.ts"; /** * Shared client for both parent and student. This is not exported and should not be used directly - * @internal */ export class BaseClient { /** @@ -28,7 +27,6 @@ export class BaseClient { */ public studentId = 0; /** - * @internal * @property authCookies Cookies used for authentication (set during login and can be empty) */ public authCookies: Array; @@ -42,7 +40,6 @@ export class BaseClient { public lastPing = 0; /** * @property API_BASE Base API URL, this is different depending on if its called as a parent or student - * @internal */ protected API_BASE = ""; /** @@ -56,7 +53,6 @@ export class BaseClient { * Revalidates the session ID. * * This is called automatically when the session ID is older than 3 minutes or when initially using the .login() method - * @internal */ public async getNewSessionId() { const pingFormData = new URLSearchParams(); @@ -81,7 +77,6 @@ export class BaseClient { * @param options.revalidateToken Whether to revalidate the session ID if it is older than 3 minutes * * @returns Response - * @internal */ public async makeAuthedRequest( path: string, diff --git a/src/core/studentClient.ts b/src/core/studentClient.ts index c5ba6fc..000c857 100644 --- a/src/core/studentClient.ts +++ b/src/core/studentClient.ts @@ -8,12 +8,10 @@ import { parseCookies } from "../utils/utils.ts"; export class StudentClient extends BaseClient { /** * @property studentCode ClassCharts student code - * @internal */ private studentCode = ""; /** * @property dateOfBirth Student's date of birth - * @internal */ private dateOfBirth = ""; diff --git a/src/types.ts b/src/types.ts index 36542df..731f813 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,6 +1,5 @@ /** * Helper type to define response from ClassCharts - * @internal */ export type ClassChartsResponse = { data: Data; diff --git a/src/utils/utils.ts b/src/utils/utils.ts index 455d7a2..48126dc 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -2,7 +2,6 @@ * Parse cookies from string * @param input Input string * @returns Object of cookies - * @internal */ export function parseCookies(input: string) { const output: Record = {};