touchstudy-core 0.1.69 → 0.1.70
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/components/Chats/hooks/useMessageList.d.ts +5 -2
- package/dist/components/Commons/NotFound.d.ts +1 -1
- package/dist/components/Dialogs/PassCodeDialog.d.ts +10 -0
- package/dist/components/Dialogs/configs/types.d.ts +4 -0
- package/dist/components/Loading/LoadingComponent.d.ts +6 -0
- package/dist/components/Selectors/InActiveAcademySelector.d.ts +16 -0
- package/dist/containers/Academies/apiClients/academyService.d.ts +1 -2
- package/dist/containers/Academies/components/PassCodeDialog.d.ts +10 -0
- package/dist/containers/Academies/hooks/useAcademyList.d.ts +1 -2
- package/dist/containers/ExamResult/hooks/useExamResult.d.ts +1 -0
- package/dist/containers/Login/hooks/useLogin.d.ts +1 -1
- package/dist/containers/PassCodes/configs/types.d.ts +6 -0
- package/dist/containers/PassCodes/hooks/usePassCodeCheck.d.ts +19 -0
- package/dist/containers/PassCodes/views/PassCodeCheck.d.ts +13 -0
- package/dist/index.d.ts +6 -2
- package/dist/index.js +953 -220
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +932 -205
- package/dist/index.modern.js.map +1 -1
- package/dist/services/academyService.d.ts +4 -1
- package/dist/services/accountService.d.ts +1 -0
- package/dist/services/passCodeService.d.ts +1 -0
- package/dist/services/recentUserActionService.d.ts +10 -0
- package/dist/utils/constants.d.ts +21 -0
- package/dist/utils/enums/index.d.ts +2 -1
- package/dist/utils/enums/recentUserAction.d.ts +7 -0
- package/dist/utils/hooks/useLayoutContext.d.ts +3 -1
- package/dist/utils/hooks/useSwitchAcademy.d.ts +1 -1
- package/dist/utils/types/checkSuperUrl.d.ts +1 -0
- package/dist/utils/types/index.d.ts +2 -1
- package/dist/utils/types/recentUserAction.d.ts +33 -0
- package/package.json +1 -1
@@ -1,4 +1,7 @@
|
|
1
|
+
import { Role } from "../utils/constants";
|
1
2
|
export declare const getAcademyList: (role?: string | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
2
3
|
export declare const getUserAcademies: (role?: string | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
4
|
+
export declare const getAcademyByDomainApi: (domain: string, role?: string | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
3
5
|
export declare const getAcademyDetail: () => Promise<import("axios").AxiosResponse<any, any>>;
|
4
|
-
export declare const switchAcademy: (academyId: number) => Promise<import("axios").AxiosResponse<any, any>>;
|
6
|
+
export declare const switchAcademy: (academyId: number, role: Role) => Promise<import("axios").AxiosResponse<any, any>>;
|
7
|
+
export declare const switchSuperAdminAcademy: (academyId: number, role: Role) => Promise<import("axios").AxiosResponse<any, any>>;
|
@@ -4,3 +4,4 @@ export declare const getSuperAdminInfoFromWeb: () => Promise<import("axios").Axi
|
|
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>>;
|
6
6
|
export declare const apiLoginWithAccessToken: (body: LoginAccessTokenRequest, domain?: string | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
7
|
+
export declare const apiLoginSuperAdminWithAccessToken: (body: LoginAccessTokenRequest) => Promise<import("axios").AxiosResponse<any, any>>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const checkPassCodeApi: (code: string, academyDomain?: string | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { Role } from "../utils/constants";
|
2
|
+
import { RecentUserAction } from "../utils/enums/recentUserAction";
|
3
|
+
import { RecentUserActionQuery } from "../utils/types/index";
|
4
|
+
export declare const getRecentUserActionListApi: (query: RecentUserActionQuery) => Promise<import("axios").AxiosResponse<any, any>>;
|
5
|
+
export declare const createRecentUserActionListApi: ({ userId, action, data, roles }: {
|
6
|
+
userId: number;
|
7
|
+
action: RecentUserAction;
|
8
|
+
data: string;
|
9
|
+
roles: Role[];
|
10
|
+
}) => Promise<import("axios").AxiosResponse<any, any>>;
|
@@ -30,6 +30,27 @@ export declare enum Language {
|
|
30
30
|
ko = "ko",
|
31
31
|
en = "en"
|
32
32
|
}
|
33
|
+
export declare const RecentUserAction: {
|
34
|
+
ViewedUser: string;
|
35
|
+
ViewedQNA: string;
|
36
|
+
ViewedExamResult: string;
|
37
|
+
PrintedExamResult: string;
|
38
|
+
ViewedAttendance: string;
|
39
|
+
UpdatedUser: string;
|
40
|
+
CreatedNewUser: string;
|
41
|
+
ImportedUser: string;
|
42
|
+
ImportedRemoveUser: string;
|
43
|
+
DeletedUser: string;
|
44
|
+
CompletedQNA: string;
|
45
|
+
AnsweredQNA: string;
|
46
|
+
RemoveMessageQNA: string;
|
47
|
+
UpdateMessageQNA: string;
|
48
|
+
UpdatedAttendance: string;
|
49
|
+
AddedTeacherToClass: string;
|
50
|
+
RemovedTeacherFromClass: string;
|
51
|
+
AddedStudentToClass: string;
|
52
|
+
RemovedStudentFromClass: string;
|
53
|
+
};
|
33
54
|
export declare const PrintHeaderClassName = "print-header";
|
34
55
|
export declare const PrintTitleClassName = "print-title";
|
35
56
|
export declare const PrintContentClassName = "print-content";
|
@@ -6,6 +6,6 @@ declare const useSwitchAcademy: (role: Role | undefined, history: any, homeAcade
|
|
6
6
|
academyList: AcademyResponse[];
|
7
7
|
toggleDropdown: () => void;
|
8
8
|
handleSwitchAcademy: (selectedAcademy?: AcademyResponse | undefined, isLoading?: boolean) => Promise<void>;
|
9
|
-
handleLogOutAcademy: (
|
9
|
+
handleLogOutAcademy: (callback: any) => Promise<void>;
|
10
10
|
};
|
11
11
|
export default useSwitchAcademy;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const checkSuperUrl: (superUrls: string[], pathname: string) => boolean;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { RecentUserActionSortBy, RecentUserActionQuery, OrderBy, RecentUserActionResponse } from "./recentUserAction";
|
1
2
|
import { SearchQuery } from "./searchQuery";
|
2
3
|
import { TableHeaderType } from "./tableHeaderType";
|
3
|
-
export { SearchQuery, TableHeaderType };
|
4
|
+
export { OrderBy, SearchQuery, TableHeaderType, RecentUserActionSortBy, RecentUserActionQuery, RecentUserActionResponse };
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import { Role } from "../constants";
|
2
|
+
export declare type RecentUserActionResponse = {
|
3
|
+
id: number;
|
4
|
+
action: string;
|
5
|
+
isNewest: boolean;
|
6
|
+
data?: string;
|
7
|
+
createdAt: string;
|
8
|
+
targetUser: {
|
9
|
+
roles: string[];
|
10
|
+
id: number;
|
11
|
+
phoneNumber: string;
|
12
|
+
email: string;
|
13
|
+
avatar: string;
|
14
|
+
fullName: string;
|
15
|
+
schoolName: string;
|
16
|
+
};
|
17
|
+
};
|
18
|
+
export declare type RecentUserActionQuery = {
|
19
|
+
currentPage: number;
|
20
|
+
pageSize: number;
|
21
|
+
sortColumnName: RecentUserActionSortBy;
|
22
|
+
textSearch?: string;
|
23
|
+
sortColumnDirection: OrderBy;
|
24
|
+
roles: Role[];
|
25
|
+
isNewest: boolean;
|
26
|
+
};
|
27
|
+
export declare enum RecentUserActionSortBy {
|
28
|
+
CreatedAt = "CreatedAt"
|
29
|
+
}
|
30
|
+
export declare enum OrderBy {
|
31
|
+
ASC = "ASC",
|
32
|
+
DESC = "DESC"
|
33
|
+
}
|