1
0
Fork 0
mirror of https://github.com/classchartsapi/classcharts-api-js.git synced 2026-05-14 11:58:13 +00:00

feat: restructure src/

This commit is contained in:
James Cook 2023-04-16 21:06:10 +01:00
parent 3aa119a063
commit e91fb1688d
6 changed files with 9 additions and 9 deletions

View file

@ -16,8 +16,8 @@ import type {
GetStudentInfoResponse,
HomeworksResponse,
LessonsResponse,
} from "./types.js";
import { PING_INTERVAL } from "./consts.js";
} from "../types.js";
import { PING_INTERVAL } from "../utils/consts.js";
/**
* Shared client for both parent and student. This is not exported and should not be used directly

View file

@ -1,9 +1,9 @@
import ky from "ky-universal";
import type { GetPupilsResponse } from "./types.js";
import type { GetPupilsResponse } from "../types.js";
import { BaseClient } from "./baseClient.js";
import { API_BASE_PARENT, BASE_URL } from "./consts.js";
import { parseCookies } from "./utils.js";
import { API_BASE_PARENT, BASE_URL } from "../utils/consts.js";
import { parseCookies } from "../utils/utils.js";
/**
* Parent Client
*/

View file

@ -1,6 +1,6 @@
import { API_BASE_STUDENT, BASE_URL } from "./consts.js";
import { API_BASE_STUDENT, BASE_URL } from "../utils/consts.js";
import { BaseClient } from "./baseClient.js";
import { parseCookies } from "./utils.js";
import { parseCookies } from "../utils/utils.js";
import ky from "ky-universal";
/**

View file

@ -1,5 +1,5 @@
export * from "./studentClient.js";
export * from "./parentClient.js";
export * from "./core/studentClient.js";
export * from "./core/parentClient.js";
export {
Student,
ActivityPoint,