touchstudy-core 0.1.151 → 0.1.153
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/configs/types.d.ts +3 -2
- package/dist/containers/Classes/components/StudentList.d.ts +3 -0
- package/dist/containers/Classes/views/ClassDetail.d.ts +1 -0
- package/dist/containers/ExamResult/components/MyAnswer/Textbook.d.ts +0 -2
- package/dist/containers/ExamResult/components/MyAnswer/configs/interfaces.d.ts +1 -1
- package/dist/containers/ExamResult/configs/types.d.ts +4 -1
- package/dist/containers/PreparedExam/components/Textbook.d.ts +4 -1
- package/dist/containers/PreparedExam/components/dialogs/ChapterProblemSolvingResultsDialog.d.ts +4 -1
- package/dist/containers/PreparedExam/components/dialogs/TextbookDrawer.d.ts +2 -1
- package/dist/containers/PreparedExam/views/PreparedItem.d.ts +4 -1
- package/dist/containers/StudentInfoDrawer/components/Exam/DrawerExamResultTab.d.ts +3 -0
- package/dist/containers/StudentInfoDrawer/components/Exam/ExamResultDrawer.d.ts +3 -0
- package/dist/containers/StudentInfoDrawer/components/Textbook/DrawerTextbookResultTab.d.ts +3 -0
- package/dist/containers/StudentInfoDrawer/configs/interfaces.d.ts +3 -0
- package/dist/containers/Users/views/UserList.d.ts +1 -0
- package/dist/index.js +129 -79
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +129 -79
- package/dist/index.modern.js.map +1 -1
- package/dist/utils/functions/common.d.ts +1 -1
- package/dist/utils/types/format.d.ts +2 -1
- package/package.json +1 -1
@@ -8,7 +8,7 @@ export declare type ConversationResponse = {
|
|
8
8
|
};
|
9
9
|
export declare type ConversationsResponse = {
|
10
10
|
id: number;
|
11
|
-
studentExamSessionId
|
11
|
+
studentExamSessionId?: number;
|
12
12
|
courseId: number | null;
|
13
13
|
courseTitle: string | null;
|
14
14
|
score?: number | null;
|
@@ -22,7 +22,8 @@ export declare type ConversationsResponse = {
|
|
22
22
|
lastMessage: string | null;
|
23
23
|
examTitle: string;
|
24
24
|
examId: number;
|
25
|
-
examSessionId
|
25
|
+
examSessionId?: number;
|
26
|
+
studentTextbookSessionId?: number;
|
26
27
|
duration: string;
|
27
28
|
startTime: string;
|
28
29
|
examCreatedAt: string;
|
@@ -1,7 +1,9 @@
|
|
1
1
|
import { StudentClassQuery, StudentClassResponse, UserClassSortBy } from "../configs/types";
|
2
2
|
import { ChangeEvent, FC, RefObject } from "react";
|
3
3
|
import { PagingResponse } from "../../../utils/types/pagingResponse";
|
4
|
+
import { Role } from "../../../utils";
|
4
5
|
interface Props {
|
6
|
+
role: Role;
|
5
7
|
history: any;
|
6
8
|
onAdd?: Function;
|
7
9
|
paging: PagingResponse;
|
@@ -17,6 +19,7 @@ interface Props {
|
|
17
19
|
handleChangeSearchText: (e: ChangeEvent<HTMLInputElement>) => void;
|
18
20
|
handleChangePage: (_: any, page: number) => void;
|
19
21
|
handleRemoveStudentFromClass: () => Promise<void>;
|
22
|
+
onViewQA?: (studentId: number, sessionId?: number, questionId?: number, isTextbook?: boolean) => void;
|
20
23
|
}
|
21
24
|
declare const StudentList: FC<Props>;
|
22
25
|
export default StudentList;
|
@@ -1,10 +1,8 @@
|
|
1
1
|
import { FC } from "react";
|
2
|
-
import { CategoryResponse } from "../../../../utils/types/examResults";
|
3
2
|
import { TextbookResult } from "../../configs/types";
|
4
3
|
interface Props {
|
5
4
|
data: TextbookResult;
|
6
5
|
questionIdContextMenu?: number;
|
7
|
-
categories: CategoryResponse[];
|
8
6
|
itemProps?: any;
|
9
7
|
isStudent: boolean;
|
10
8
|
}
|
@@ -14,7 +14,7 @@ export interface TextbookAnswerItemProps extends TextbookAnswerItemBaseProps {
|
|
14
14
|
nextData?: StudentQuestionResult;
|
15
15
|
isLast?: boolean;
|
16
16
|
isFirst?: boolean;
|
17
|
-
|
17
|
+
questionGroupId: number;
|
18
18
|
}
|
19
19
|
export interface TextbookAnswerItemBaseProps {
|
20
20
|
menuContextActions?: Action<StudentQuestionResult>[];
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { QuestionAnswerType } from './../../../utils/enums/examStatus';
|
2
2
|
import { CategoryResponse } from "../../../utils/types/examResults";
|
3
|
+
import { Role } from '../../../utils';
|
3
4
|
export interface CategoryFormat extends CategoryResponse {
|
4
5
|
totalSolveTime: number;
|
5
6
|
}
|
@@ -55,6 +56,7 @@ export declare type TextbookResult = {
|
|
55
56
|
};
|
56
57
|
export declare type StudentQuestionResult = {
|
57
58
|
id: number;
|
59
|
+
questionGroupId: number;
|
58
60
|
selectedAnswers?: number[] | string;
|
59
61
|
correctAnswers?: number[] | string;
|
60
62
|
textualAnswers?: string[];
|
@@ -98,5 +100,6 @@ export declare type ExamResultV2Props = {
|
|
98
100
|
code?: string;
|
99
101
|
isMyStoryStudent?: boolean;
|
100
102
|
chapterId?: number;
|
101
|
-
|
103
|
+
role: Role;
|
104
|
+
onViewQA?: (studentId: number, sessionId?: number, questionId?: number, isTextbook?: boolean) => void;
|
102
105
|
};
|
@@ -1,8 +1,10 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import { Theme } from "@mui/material";
|
3
3
|
import { PreparedFilterType, PreparedType, Textbook } from "../configs/types";
|
4
|
+
import { Role } from "../../../utils";
|
4
5
|
declare type Props = {
|
5
6
|
t: any;
|
7
|
+
role: Role;
|
6
8
|
user: any;
|
7
9
|
theme: Theme;
|
8
10
|
textbook: Textbook;
|
@@ -12,6 +14,7 @@ declare type Props = {
|
|
12
14
|
preparedType?: PreparedType;
|
13
15
|
preparedFilterType?: PreparedFilterType;
|
14
16
|
getTextbookList: () => void;
|
17
|
+
onViewQA?: (studentId: number, sessionId?: number, questionId?: number, isTextbook?: boolean) => void;
|
15
18
|
};
|
16
|
-
declare const Textbook: ({ t, user, theme, textbook, isStudent, isSuperAdmin, navigate, preparedType, preparedFilterType, getTextbookList }: Props) => React.JSX.Element;
|
19
|
+
declare const Textbook: ({ t, role, user, theme, textbook, isStudent, isSuperAdmin, navigate, preparedType, preparedFilterType, getTextbookList, onViewQA }: Props) => React.JSX.Element;
|
17
20
|
export default Textbook;
|
package/dist/containers/PreparedExam/components/dialogs/ChapterProblemSolvingResultsDialog.d.ts
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import { Theme } from "@mui/material";
|
3
|
+
import { Role } from "../../../../utils";
|
3
4
|
declare type Props = {
|
5
|
+
role: Role;
|
4
6
|
open: boolean;
|
5
7
|
onClose: () => void;
|
6
8
|
theme: Theme;
|
@@ -8,6 +10,7 @@ declare type Props = {
|
|
8
10
|
history: any;
|
9
11
|
chapterId?: number;
|
10
12
|
studentId?: number;
|
13
|
+
onViewQA?: (studentId: number, sessionId?: number, questionId?: number, isTextbook?: boolean) => void;
|
11
14
|
};
|
12
|
-
declare const ChapterProblemSolvingResultsDialog: ({ t, onClose, open, history, chapterId, studentId }: Props) => React.JSX.Element;
|
15
|
+
declare const ChapterProblemSolvingResultsDialog: ({ t, role, onClose, open, history, chapterId, studentId, onViewQA }: Props) => React.JSX.Element;
|
13
16
|
export default ChapterProblemSolvingResultsDialog;
|
@@ -9,6 +9,7 @@ declare type Props = {
|
|
9
9
|
navigate?: any;
|
10
10
|
width?: number | string;
|
11
11
|
anchor?: "left" | "top" | "right" | "bottom";
|
12
|
+
onViewQA?: (studentId: number, sessionId?: number, questionId?: number, isTextbook?: boolean) => void;
|
12
13
|
};
|
13
|
-
declare const TextbookDrawer: ({ isOpen, role, width, textbookId, studentId, anchor, navigate, onClose }: Props) => React.JSX.Element;
|
14
|
+
declare const TextbookDrawer: ({ isOpen, role, width, textbookId, studentId, anchor, navigate, onClose, onViewQA }: Props) => React.JSX.Element;
|
14
15
|
export default TextbookDrawer;
|
@@ -1,8 +1,11 @@
|
|
1
1
|
import React from 'react';
|
2
|
+
import { Role } from '../../../utils';
|
2
3
|
declare type Props = {
|
4
|
+
role: Role;
|
3
5
|
preparedType?: any;
|
4
6
|
preparedFilterType?: any;
|
5
7
|
navigate?: any;
|
8
|
+
onViewQA?: (studentId: number, sessionId?: number, questionId?: number, isTextbook?: boolean) => void;
|
6
9
|
};
|
7
|
-
declare const PreparedItem: ({ preparedType, preparedFilterType, navigate }: Props) => React.JSX.Element;
|
10
|
+
declare const PreparedItem: ({ role, preparedType, preparedFilterType, navigate, onViewQA }: Props) => React.JSX.Element;
|
8
11
|
export default PreparedItem;
|
@@ -1,9 +1,12 @@
|
|
1
1
|
import { FC } from "react";
|
2
2
|
import { TabContentProps } from "../../configs/interfaces";
|
3
3
|
import { StudentInfo } from "../../configs/types";
|
4
|
+
import { Role } from "../../../../utils";
|
4
5
|
interface Props extends TabContentProps {
|
6
|
+
role: Role;
|
5
7
|
history: any;
|
6
8
|
student?: StudentInfo;
|
9
|
+
onViewQA?: (studentId: number, sessionId?: number, questionId?: number, isTextbook?: boolean) => void;
|
7
10
|
}
|
8
11
|
declare const DrawerExamResultTab: FC<Props>;
|
9
12
|
export default DrawerExamResultTab;
|
@@ -1,6 +1,8 @@
|
|
1
1
|
import { FC } from "react";
|
2
2
|
import { ExamSessionResponse, StudentInfo } from "../../configs/types";
|
3
|
+
import { Role } from "../../../../utils";
|
3
4
|
interface Props {
|
5
|
+
role: Role;
|
4
6
|
open?: boolean;
|
5
7
|
student?: StudentInfo;
|
6
8
|
anchor?: "left" | "top" | "right" | "bottom";
|
@@ -8,6 +10,7 @@ interface Props {
|
|
8
10
|
width?: number | string;
|
9
11
|
data?: ExamSessionResponse;
|
10
12
|
history: any;
|
13
|
+
onViewQA?: (studentId: number, sessionId?: number, questionId?: number, isTextbook?: boolean) => void;
|
11
14
|
}
|
12
15
|
declare const ExamResultDrawer: FC<Props>;
|
13
16
|
export default ExamResultDrawer;
|
@@ -1,7 +1,10 @@
|
|
1
1
|
import { FC } from "react";
|
2
2
|
import { TabContentProps } from "../../configs/interfaces";
|
3
|
+
import { Role } from "../../../../utils";
|
3
4
|
interface Props extends TabContentProps {
|
5
|
+
role: Role;
|
4
6
|
history: any;
|
7
|
+
onViewQA?: (studentId: number, sessionId?: number, questionId?: number, isTextbook?: boolean) => void;
|
5
8
|
}
|
6
9
|
declare const DrawerTextbookResultTab: FC<Props>;
|
7
10
|
export default DrawerTextbookResultTab;
|
@@ -1,7 +1,9 @@
|
|
1
1
|
import { BoxProps } from "@mui/material";
|
2
2
|
import { DrawerTab } from "./enums";
|
3
3
|
import { CourseAttendanceResponse, ExamSessionResponse, LessonResponse, TextbookResponse } from "./types";
|
4
|
+
import { Role } from "../../../utils";
|
4
5
|
export interface StudentInfoDrawerProps {
|
6
|
+
role: Role;
|
5
7
|
studentId?: number;
|
6
8
|
open: boolean;
|
7
9
|
inert?: boolean;
|
@@ -9,6 +11,7 @@ export interface StudentInfoDrawerProps {
|
|
9
11
|
onClose?: () => void;
|
10
12
|
width?: number | string;
|
11
13
|
history: any;
|
14
|
+
onViewQA?: (studentId: number, sessionId?: number, questionId?: number, isTextbook?: boolean) => void;
|
12
15
|
}
|
13
16
|
export interface TabContentProps {
|
14
17
|
studentId: number;
|
@@ -3,6 +3,7 @@ import { Role } from "../../../utils/constants";
|
|
3
3
|
interface Props {
|
4
4
|
role: Role;
|
5
5
|
history: any;
|
6
|
+
onViewQA?: (studentId: number, sessionId?: number, questionId?: number, isTextbook?: boolean) => void;
|
6
7
|
}
|
7
8
|
declare const UserList: FC<Props>;
|
8
9
|
export default UserList;
|