mirror of
https://github.com/classchartsapi/classcharts-api-js.git
synced 2026-05-14 19:59:37 +00:00
feat: restructure src/
This commit is contained in:
parent
3aa119a063
commit
e91fb1688d
6 changed files with 9 additions and 9 deletions
|
|
@ -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
|
||||
|
|
@ -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
|
||||
*/
|
||||
|
|
@ -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";
|
||||
|
||||
/**
|
||||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue