mario-education 2.4.412-release → 2.4.413-release
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/containers/AssignTeacher/components/AssignTeacherModal.d.ts +4 -0
- package/dist/containers/AssignTeacher/hooks/useAssignTeacher.d.ts +18 -0
- package/dist/containers/AssignTeacher/utils/constants.d.ts +3 -0
- package/dist/containers/AssignTeacher/utils/type.interface.d.ts +42 -0
- package/dist/containers/AssignTeacher/views/AssignTeacherList.d.ts +2 -0
- package/dist/index.js +426 -44
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +426 -44
- package/dist/index.modern.js.map +1 -1
- package/dist/services/userService.d.ts +4 -1
- package/dist/utils/serviceType.interface.d.ts +8 -0
- package/package.json +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IOptions, IStudentWithoutTeacherItem } from "../utils/type.interface";
|
|
3
|
+
declare const useAssignAssistant: () => {
|
|
4
|
+
userList: IStudentWithoutTeacherItem[];
|
|
5
|
+
totalItems: number;
|
|
6
|
+
filters: import("mario-core").Filter;
|
|
7
|
+
changeFilters: (updatedFilters: any) => void;
|
|
8
|
+
modal: import("react").MutableRefObject<any>;
|
|
9
|
+
userChoiced: IStudentWithoutTeacherItem;
|
|
10
|
+
options: IOptions[];
|
|
11
|
+
changeTeacherId: (value: IOptions[]) => void;
|
|
12
|
+
teacherChangeId: IOptions[];
|
|
13
|
+
handleAssign: () => Promise<void>;
|
|
14
|
+
resetData: () => void;
|
|
15
|
+
choiceUser: (userChoiced: IStudentWithoutTeacherItem) => void;
|
|
16
|
+
isChecked: boolean;
|
|
17
|
+
};
|
|
18
|
+
export default useAssignAssistant;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export interface IOptions {
|
|
2
|
+
label: string;
|
|
3
|
+
value: string;
|
|
4
|
+
}
|
|
5
|
+
export declare type USER_CHOICE = {
|
|
6
|
+
id: string;
|
|
7
|
+
studentName: string;
|
|
8
|
+
emailStudent: string;
|
|
9
|
+
assistantId: string;
|
|
10
|
+
emailAssistant: string;
|
|
11
|
+
assistantName: string;
|
|
12
|
+
};
|
|
13
|
+
export declare type Teacher = {
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
email: string;
|
|
17
|
+
};
|
|
18
|
+
export interface IAssignTeacherModal {
|
|
19
|
+
header: string;
|
|
20
|
+
onAssign: () => Promise<void>;
|
|
21
|
+
resetData: () => void;
|
|
22
|
+
userChoiced: IStudentWithoutTeacherItem;
|
|
23
|
+
options: IOptions[];
|
|
24
|
+
teacherChangeId: IOptions[];
|
|
25
|
+
setTeacherChangeId: (value: any) => void;
|
|
26
|
+
isChecked: boolean;
|
|
27
|
+
}
|
|
28
|
+
export interface IStudentWithoutTeacherItem {
|
|
29
|
+
id: number;
|
|
30
|
+
emailStudent: string;
|
|
31
|
+
studentName: string;
|
|
32
|
+
teacherUserIds?: string[];
|
|
33
|
+
dateOfBirth: string;
|
|
34
|
+
createdAt: string;
|
|
35
|
+
}
|
|
36
|
+
export declare type TypeStudentWithoutTeacherData = {
|
|
37
|
+
currentPage: number;
|
|
38
|
+
pageSize: number;
|
|
39
|
+
totalItems: number;
|
|
40
|
+
totalPages: number;
|
|
41
|
+
items: IStudentWithoutTeacherItem[];
|
|
42
|
+
};
|