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.
- package/dist/index.js +79 -18
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +79 -18
- package/dist/index.modern.js.map +1 -1
- package/dist/services/accountService.d.ts +1 -1
- package/dist/utils/constants.d.ts +1 -1
- package/dist/utils/helpers.d.ts +1 -1
- package/package.json +1 -1
@@ -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>>;
|
package/dist/utils/helpers.d.ts
CHANGED
@@ -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;
|