touchstudy-core 0.1.100 → 0.1.102

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { LoginAccessTokenRequest, LoginRequest } from "../utils/types/login";
2
- export declare const getInfo: () => Promise<import("axios").AxiosResponse<any, any>>;
2
+ export declare const getInfo: (role?: string | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
3
3
  export declare const getSuperAdminInfoFromWeb: () => Promise<import("axios").AxiosResponse<any, any>>;
4
4
  export declare const apiLoginGoogle: (body: LoginRequest) => Promise<import("axios").AxiosResponse<any, any>>;
5
5
  export declare const apiLoginGoogleSuperAdmin: (body: LoginRequest) => Promise<import("axios").AxiosResponse<any, any>>;
@@ -26,7 +26,7 @@ export declare enum Role {
26
26
  Teacher = "Teacher",
27
27
  Admin = "Admin",
28
28
  AcademyAdmin = "AcademyAdmin",
29
- AcademyAdminTeacher = "AcademyAdminTeacher"
29
+ AcademyAdminTeacher = "AcademyAdmin/Teacher"
30
30
  }
31
31
  export declare enum Language {
32
32
  ko = "ko",
@@ -19,4 +19,4 @@ export declare const totalSolveTimeCategories: (inputData: ExamResult, categorie
19
19
  }[];
20
20
  export declare const formatTimeSecond: (duration: number, t: any) => string;
21
21
  export declare const formatRole: (roles: string[], t: any) => any;
22
- export declare const getRole: (roles: string[]) => Role | null;
22
+ export declare const getRole: (roles: string[]) => Role.Student | Role.Teacher | Role.Admin | Role.AcademyAdmin | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "touchstudy-core",
3
- "version": "0.1.100",
3
+ "version": "0.1.102",
4
4
  "description": "Contains core components && functions for TouchStudy project",
5
5
  "author": "brss",
6
6
  "license": "MIT",