mario-core 2.0.0 → 2.0.1-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/assets/Images.d.ts +14 -14
- package/dist/components/Alerts/CommonAlert.d.ts +3 -3
- package/dist/components/Alerts/EmptyDataAlert.d.ts +8 -8
- package/dist/components/Alerts/ErrorHandler.d.ts +6 -6
- package/dist/components/Alerts/SandboxAlert.d.ts +3 -0
- package/dist/components/Buttons/AddButton.d.ts +7 -7
- package/dist/components/Buttons/AddButtonIcon.d.ts +6 -6
- package/dist/components/Buttons/CloseButton.d.ts +8 -8
- package/dist/components/Buttons/DeleteButtonIcon.d.ts +7 -6
- package/dist/components/Buttons/DetailActionButtons.d.ts +8 -8
- package/dist/components/Buttons/EditButtonIcon.d.ts +7 -6
- package/dist/components/Buttons/LinkEditButton.d.ts +7 -7
- package/dist/components/Buttons/LoginNavButton.d.ts +8 -8
- package/dist/components/Buttons/SyncButton.d.ts +8 -0
- package/dist/components/Buttons/ToggleButton.d.ts +10 -10
- package/dist/components/Buttons/UploadFileButton.d.ts +13 -13
- package/dist/components/Headers/CommonHeader.d.ts +7 -7
- package/dist/components/Image/UploadImage.d.ts +2 -3
- package/dist/components/Inputs/FileInput.d.ts +8 -8
- package/dist/components/Inputs/PasswordInput.d.ts +9 -8
- package/dist/components/Inputs/SearchBox.d.ts +10 -10
- package/dist/components/Inputs/SearchBoxContainer.d.ts +9 -10
- package/dist/components/Labels/RequiredLabel.d.ts +6 -6
- package/dist/components/Loading/Loading.d.ts +3 -3
- package/dist/components/Modals/CommonModal.d.ts +2 -3
- package/dist/components/Modals/NotificationLogoutModal.d.ts +2 -0
- package/dist/components/Modals/NotificationModal.d.ts +2 -3
- package/dist/components/Others/QuitPrompt.d.ts +5 -2
- package/dist/components/Pagination/CustomPagination.d.ts +2 -3
- package/dist/components/Scroll/ScrollToTop.d.ts +3 -0
- package/dist/components/Selectors/AcademicClassSelector.d.ts +2 -3
- package/dist/components/Selectors/CategorySelector.d.ts +2 -0
- package/dist/components/Selectors/CreatableSelector.d.ts +2 -3
- package/dist/components/Selectors/CustomSelector.d.ts +2 -3
- package/dist/components/Selectors/MailCategorySelectors.d.ts +2 -3
- package/dist/components/Selectors/QuestionCategorySelector.d.ts +2 -3
- package/dist/components/Selectors/QuestionTypeSelector.d.ts +2 -3
- package/dist/components/Selectors/StarRatingSelector.d.ts +2 -3
- package/dist/components/Selectors/SuggestionCategorySelector.d.ts +2 -3
- package/dist/components/Selectors/constants/constant.d.ts +10 -0
- package/dist/components/Selectors/hooks/useCategorySelector.d.ts +5 -0
- package/dist/components/Tabs/CustomTab.d.ts +2 -3
- package/dist/components/Tabs/TabsWithComponent.d.ts +10 -0
- package/dist/configs/editorConfig.d.ts +7 -7
- package/dist/containers/Commons/NotFound.d.ts +3 -3
- package/dist/containers/DistrictSchools/views/SchoolList.d.ts +3 -3
- package/dist/containers/EmailTemplate/components/AttachmentFile.d.ts +7 -7
- package/dist/containers/EmailTemplate/components/MailParam.d.ts +7 -7
- package/dist/containers/EmailTemplate/configs/emailTemplateSchema.d.ts +13 -13
- package/dist/containers/EmailTemplate/hooks/useEmailTemplateDetail.d.ts +28 -28
- package/dist/containers/EmailTemplate/hooks/useEmailTemplateList.d.ts +11 -12
- package/dist/containers/EmailTemplate/views/EmailTemplateDetail.d.ts +3 -3
- package/dist/containers/EmailTemplate/views/EmailTemplateList.d.ts +3 -3
- package/dist/containers/Gallery/components/ActionModal.d.ts +2 -3
- package/dist/containers/Gallery/components/Filter.d.ts +8 -8
- package/dist/containers/Gallery/components/Media.d.ts +7 -8
- package/dist/containers/Gallery/components/MediaDetail.d.ts +6 -7
- package/dist/containers/Gallery/components/MediaList.d.ts +7 -7
- package/dist/containers/Gallery/components/MediaNav.d.ts +17 -18
- package/dist/containers/Gallery/constants/gallery.types.d.ts +21 -20
- package/dist/containers/Gallery/extensions/helpers.d.ts +4 -4
- package/dist/containers/Gallery/hooks/useGalleryList.d.ts +30 -31
- package/dist/containers/Gallery/views/GalleryList.d.ts +6 -6
- package/dist/containers/Login/constant/authConfig.d.ts +38 -0
- package/dist/containers/Login/constant/types.d.ts +34 -0
- package/dist/containers/Login/hooks/useCreatePassword.d.ts +12 -0
- package/dist/containers/Login/hooks/useForgotPassword.d.ts +22 -21
- package/dist/containers/Login/hooks/useLogin.d.ts +29 -15
- package/dist/containers/Login/hooks/useLoginTwoFactor.d.ts +4 -0
- package/dist/containers/Login/views/Dashboard.d.ts +3 -3
- package/dist/containers/Login/views/Login.d.ts +9 -8
- package/dist/containers/Login/views/block/BlockBackground.d.ts +7 -0
- package/dist/containers/Login/views/block/BlockCreatePassword.d.ts +2 -0
- package/dist/containers/Login/views/block/BlockForgetPassword.d.ts +6 -3
- package/dist/containers/Login/views/block/BlockLogin.d.ts +21 -7
- package/dist/containers/Login/views/block/BlockResetPassword.d.ts +2 -3
- package/dist/containers/Login/views/block/BlockSelectTeacher.d.ts +10 -0
- package/dist/containers/Login/views/block/BlockTwoFactorLogin.d.ts +2 -0
- package/dist/containers/Login/views/block/CloseBlock.d.ts +6 -6
- package/dist/containers/Login/views/block/ContentHomePage.d.ts +5 -5
- package/dist/containers/Login/views/block/IconContent.d.ts +7 -7
- package/dist/containers/Login/views/block/QuoteContent.d.ts +2 -7
- package/dist/containers/Notifications/components/NotificationButton.d.ts +5 -5
- package/dist/containers/Notifications/components/NotificationStatusSelector.d.ts +6 -7
- package/dist/containers/Notifications/hooks/useNotificationList.d.ts +17 -14
- package/dist/containers/Notifications/hooks/useUnreadNotification.d.ts +4 -4
- package/dist/containers/Notifications/views/NotificationList.d.ts +2 -3
- package/dist/containers/Skill/components/SkillDetailModal.d.ts +2 -3
- package/dist/containers/Skill/components/SkillSelector.d.ts +2 -3
- package/dist/containers/Skill/hooks/useSkillDetail.d.ts +19 -20
- package/dist/containers/Skill/hooks/useSkillList.d.ts +9 -10
- package/dist/containers/Skill/views/SkillList.d.ts +3 -3
- package/dist/containers/User/components/AssignStudentModal.d.ts +20 -0
- package/dist/containers/User/components/DeleteBulkModel.d.ts +3 -0
- package/dist/containers/User/components/FilterPopover.d.ts +21 -0
- package/dist/containers/User/components/HeaderCell.d.ts +19 -0
- package/dist/containers/User/components/RemoveAssistant.d.ts +3 -0
- package/dist/containers/User/components/RemoveCounselor.d.ts +3 -0
- package/dist/containers/User/components/RemoveSupportTeacher.d.ts +3 -0
- package/dist/containers/User/components/RemoveTeacher.d.ts +3 -0
- package/dist/containers/User/components/SwitchDataTeacherModel.d.ts +12 -0
- package/dist/containers/User/components/SwitchTeacherModal.d.ts +2 -0
- package/dist/containers/User/components/TableHeader.d.ts +15 -0
- package/dist/containers/User/components/TeacherSelector.d.ts +2 -0
- package/dist/containers/User/components/UploadCSVButton.d.ts +11 -0
- package/dist/containers/User/components/UserDeletedModal.d.ts +2 -0
- package/dist/containers/User/configs/changePasswordSchema.d.ts +11 -0
- package/dist/containers/User/configs/userSchema.d.ts +13 -15
- package/dist/containers/User/configs/utils.d.ts +8 -0
- package/dist/containers/User/constants/constants.d.ts +63 -0
- package/dist/containers/User/constants/types.d.ts +265 -0
- package/dist/containers/User/hooks/useAssignStudent.d.ts +44 -0
- package/dist/containers/User/hooks/useAssignStudentList.d.ts +36 -0
- package/dist/containers/User/hooks/useAssistantList.d.ts +9 -0
- package/dist/containers/User/hooks/useCSVImport.d.ts +37 -0
- package/dist/containers/User/hooks/useCSVImportTab.d.ts +45 -0
- package/dist/containers/User/hooks/useClickOutside.d.ts +2 -0
- package/dist/containers/User/hooks/useCounselorList.d.ts +9 -0
- package/dist/containers/User/hooks/useExportUsersCsv.d.ts +5 -0
- package/dist/containers/User/hooks/useFilterPopover.d.ts +37 -0
- package/dist/containers/User/hooks/useResendMail.d.ts +5 -0
- package/dist/containers/User/hooks/useRosterUserSelector.d.ts +8 -0
- package/dist/containers/User/hooks/useSecondaryTeacherList.d.ts +9 -0
- package/dist/containers/User/hooks/useTableHeader.d.ts +20 -0
- package/dist/containers/User/hooks/useTeacherList.d.ts +9 -0
- package/dist/containers/User/hooks/useUserDeletedList.d.ts +21 -0
- package/dist/containers/User/hooks/useUserDeletedModal.d.ts +13 -0
- package/dist/containers/User/hooks/useUserDetail.d.ts +41 -22
- package/dist/containers/User/hooks/useUserList.d.ts +18 -11
- package/dist/containers/User/hooks/userFilters.d.ts +7 -0
- package/dist/containers/User/views/AssignStudentList.d.ts +2 -0
- package/dist/containers/User/views/CSVImport.d.ts +3 -0
- package/dist/containers/User/views/RosterUserSelector.d.ts +8 -0
- package/dist/containers/User/views/UserContainer.d.ts +2 -0
- package/dist/containers/User/views/UserDeletedList.d.ts +2 -0
- package/dist/containers/User/views/UserDetail.d.ts +2 -3
- package/dist/containers/User/views/UserList.d.ts +2 -3
- package/dist/hooks/useFilters.d.ts +7 -0
- package/dist/hooks/useLanguages.d.ts +9 -0
- package/dist/i18n.d.ts +2 -0
- package/dist/index.d.ts +114 -101
- package/dist/index.js +24 -7326
- package/dist/index.modern.js +28540 -6799
- package/dist/layouts/TheContent.d.ts +2 -3
- package/dist/mario-core.css +1 -0
- package/dist/redux/assessments/action.d.ts +1 -1
- package/dist/redux/assessments/reducer.d.ts +10 -5
- package/dist/redux/assignment/action.d.ts +1 -1
- package/dist/redux/assignment/reducer.d.ts +4 -2
- package/dist/redux/assistants/action.d.ts +1 -1
- package/dist/redux/assistants/reducer.d.ts +4 -2
- package/dist/redux/badges/action.d.ts +1 -1
- package/dist/redux/badges/reducer.d.ts +4 -2
- package/dist/redux/bandScores/action.d.ts +1 -1
- package/dist/redux/bandScores/reducer.d.ts +4 -2
- package/dist/redux/certificate/action.d.ts +1 -1
- package/dist/redux/certificate/reducer.d.ts +4 -2
- package/dist/redux/classes/action.d.ts +1 -1
- package/dist/redux/classes/reducer.d.ts +4 -2
- package/dist/redux/commons/action.d.ts +23 -8
- package/dist/redux/commons/reducer.d.ts +4 -2
- package/dist/redux/conferenceRubrics/action.d.ts +1 -1
- package/dist/redux/conferenceRubrics/reducer.d.ts +4 -2
- package/dist/redux/customAlert/action.d.ts +1 -1
- package/dist/redux/customAlert/reducer.d.ts +4 -2
- package/dist/redux/dashboard/action.d.ts +5 -4
- package/dist/redux/dashboard/reducer.d.ts +4 -2
- package/dist/redux/dataPlayer/action.d.ts +2 -2
- package/dist/redux/dataPlayer/reducer.d.ts +4 -2
- package/dist/redux/emailTemplates/action.d.ts +1 -1
- package/dist/redux/emailTemplates/reducer.d.ts +4 -2
- package/dist/redux/faqs/action.d.ts +1 -1
- package/dist/redux/faqs/reducer.d.ts +4 -2
- package/dist/redux/feedback/action.d.ts +1 -1
- package/dist/redux/feedback/reducer.d.ts +4 -2
- package/dist/redux/gallery/action.d.ts +2 -2
- package/dist/redux/gallery/reducer.d.ts +4 -2
- package/dist/redux/goalExamples/action.d.ts +1 -1
- package/dist/redux/goalExamples/reducer.d.ts +4 -2
- package/dist/redux/improveMyClass/action.d.ts +1 -1
- package/dist/redux/improveMyClass/reducer.d.ts +4 -2
- package/dist/redux/learningStrategies/action.d.ts +1 -1
- package/dist/redux/learningStrategies/reducer.d.ts +4 -2
- package/dist/redux/learningSupportCategories/action.d.ts +1 -1
- package/dist/redux/learningSupportCategories/reducer.d.ts +4 -2
- package/dist/redux/mailCategories/action.d.ts +1 -1
- package/dist/redux/mailCategories/reducer.d.ts +4 -2
- package/dist/redux/navMobile/action.d.ts +1 -0
- package/dist/redux/navMobile/reducer.d.ts +4 -0
- package/dist/redux/notifications/action.d.ts +3 -3
- package/dist/redux/notifications/reducer.d.ts +4 -2
- package/dist/redux/questionBanks/action.d.ts +1 -1
- package/dist/redux/questionBanks/reducer.d.ts +4 -2
- package/dist/redux/questionByCategory/action.d.ts +8 -8
- package/dist/redux/questionByCategory/reducer.d.ts +4 -2
- package/dist/redux/questionCategory/action.d.ts +1 -1
- package/dist/redux/questionCategory/reducer.d.ts +4 -2
- package/dist/redux/reflectionForms/action.d.ts +1 -1
- package/dist/redux/reflectionForms/reducer.d.ts +4 -2
- package/dist/redux/reflectionResults/action.d.ts +1 -1
- package/dist/redux/reflectionResults/reducer.d.ts +4 -2
- package/dist/redux/schoolBlankDays/action.d.ts +1 -1
- package/dist/redux/schoolBlankDays/reducer.d.ts +4 -2
- package/dist/redux/semester/action.d.ts +1 -1
- package/dist/redux/semester/reducer.d.ts +4 -2
- package/dist/redux/sessionPlayers/action.d.ts +5 -4
- package/dist/redux/sessionPlayers/reducer.d.ts +4 -2
- package/dist/redux/sessionTemplateGeneralClasses/action.d.ts +1 -1
- package/dist/redux/sessionTemplateGeneralClasses/reducer.d.ts +4 -2
- package/dist/redux/sessionTemplates/action.d.ts +1 -1
- package/dist/redux/sessionTemplates/reducer.d.ts +4 -2
- package/dist/redux/skills/action.d.ts +1 -1
- package/dist/redux/skills/reducer.d.ts +4 -2
- package/dist/redux/subjects/action.d.ts +1 -1
- package/dist/redux/subjects/reducer.d.ts +4 -2
- package/dist/redux/suggestionBanks/action.d.ts +1 -1
- package/dist/redux/suggestionBanks/reducer.d.ts +4 -2
- package/dist/redux/teacher/myStudent/action.d.ts +1 -1
- package/dist/redux/teacher/myStudent/reducer.d.ts +4 -2
- package/dist/redux/tutorialScreen/action.d.ts +1 -1
- package/dist/redux/tutorialScreen/reducer.d.ts +10 -5
- package/dist/redux/users/action.d.ts +2 -2
- package/dist/redux/users/reducer.d.ts +4 -2
- package/dist/redux/weeklyQuests/action.d.ts +2 -0
- package/dist/redux/weeklyQuests/reducer.d.ts +12 -0
- package/dist/redux/widget/action.d.ts +1 -1
- package/dist/redux/widget/reducer.d.ts +4 -2
- package/dist/rootReducer.d.ts +106 -48
- package/dist/services/accountService.d.ts +22 -7
- package/dist/services/api.d.ts +3 -3
- package/dist/services/classService.d.ts +1 -1
- package/dist/services/csvImportService.d.ts +9 -0
- package/dist/services/csvService.d.ts +8 -0
- package/dist/services/emailTemplateService.d.ts +7 -6
- package/dist/services/fileServices.d.ts +13 -13
- package/dist/services/galleryService.d.ts +2 -2
- package/dist/services/mailCategoryService.d.ts +1 -1
- package/dist/services/notificationService.d.ts +7 -6
- package/dist/services/questionCategoryService.d.ts +3 -1
- package/dist/services/schoolService.d.ts +2 -0
- package/dist/services/skillService.d.ts +6 -6
- package/dist/services/suggestionCategoryService.d.ts +1 -1
- package/dist/services/userService.d.ts +37 -7
- package/dist/store.d.ts +3 -3
- package/dist/types/Conversation.d.ts +8 -8
- package/dist/types/ConversationMember.d.ts +5 -5
- package/dist/types/Dashboard.d.ts +5 -5
- package/dist/types/Filter.d.ts +16 -10
- package/dist/types/Language.d.ts +8 -0
- package/dist/types/Message.d.ts +13 -13
- package/dist/types/Notification.d.ts +8 -8
- package/dist/types/Payload.d.ts +17 -0
- package/dist/types/user.d.ts +3 -0
- package/dist/utils/canAccessRoute.d.ts +2 -2
- package/dist/utils/constants.d.ts +87 -57
- package/dist/utils/debounce.d.ts +2 -2
- package/dist/utils/domHelpers.d.ts +2 -2
- package/dist/utils/encodeParams.d.ts +2 -2
- package/dist/utils/firstCheckToken.d.ts +2 -2
- package/dist/utils/generateRandomString.d.ts +2 -2
- package/dist/utils/getAccessToken.d.ts +2 -2
- package/dist/utils/getCookieValue.d.ts +2 -0
- package/dist/utils/getFileUrl.d.ts +2 -2
- package/dist/utils/getStaticFileUrl.d.ts +2 -0
- package/dist/utils/getTextFromHTML.d.ts +2 -2
- package/dist/utils/utcToLocalTime.d.ts +1 -2
- package/package.json +79 -63
- package/dist/components/Alerts/ReactNotification.d.ts +0 -4
- package/dist/containers/Faq/components/FaqDetailModal.d.ts +0 -3
- package/dist/containers/Faq/hooks/useFaqDetail.d.ts +0 -18
- package/dist/containers/Faq/hooks/useFaqList.d.ts +0 -10
- package/dist/containers/Faq/views/FaqList.d.ts +0 -3
- package/dist/index.css +0 -499
- package/dist/index.js.map +0 -1
- package/dist/index.modern.js.map +0 -1
- package/dist/index.test.d.ts +0 -1
- package/dist/layouts/TheFooter.d.ts +0 -3
- package/dist/layouts/TheHeader.d.ts +0 -3
- package/dist/layouts/TheHeaderDropdown.d.ts +0 -3
- package/dist/layouts/TheLayout.d.ts +0 -3
- package/dist/layouts/TheSidebar.d.ts +0 -3
- package/dist/redux/bandScoreBreakPoint/action.d.ts +0 -1
- package/dist/redux/bandScoreBreakPoint/reducer.d.ts +0 -2
- package/dist/services/faqService.d.ts +0 -6
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
export type User = {
|
|
2
|
+
id: string;
|
|
3
|
+
firstName: string;
|
|
4
|
+
lastName: string;
|
|
5
|
+
firstInitial: string;
|
|
6
|
+
email: string;
|
|
7
|
+
phoneNumber: string;
|
|
8
|
+
roles: string[];
|
|
9
|
+
dateOfBirth: string;
|
|
10
|
+
createTime: string;
|
|
11
|
+
isActive: boolean;
|
|
12
|
+
profileImageFileName: string;
|
|
13
|
+
fullName: string;
|
|
14
|
+
sourcedId: string;
|
|
15
|
+
rosterUser: RosterUser;
|
|
16
|
+
grade: string;
|
|
17
|
+
teachers: string;
|
|
18
|
+
assistants: string;
|
|
19
|
+
counselors: string;
|
|
20
|
+
eduTeachers: string;
|
|
21
|
+
supportTeachers: string;
|
|
22
|
+
};
|
|
23
|
+
export type RosterUser = {
|
|
24
|
+
sourcedId: string;
|
|
25
|
+
username: string;
|
|
26
|
+
status: string;
|
|
27
|
+
givenName: string;
|
|
28
|
+
middleName: string;
|
|
29
|
+
familyName: string;
|
|
30
|
+
email: string;
|
|
31
|
+
grades: string;
|
|
32
|
+
role: string;
|
|
33
|
+
};
|
|
34
|
+
export type Option = {
|
|
35
|
+
label: string;
|
|
36
|
+
value: string;
|
|
37
|
+
};
|
|
38
|
+
export type UserFilter = {
|
|
39
|
+
currentPage?: number;
|
|
40
|
+
pageSize?: number;
|
|
41
|
+
searchString?: string;
|
|
42
|
+
isDescending?: boolean;
|
|
43
|
+
sortBy?: UserOrder;
|
|
44
|
+
searchBy?: SearchBy;
|
|
45
|
+
searchByStrings?: string[];
|
|
46
|
+
isStudent?: string[];
|
|
47
|
+
};
|
|
48
|
+
export type StudentFilter = {
|
|
49
|
+
currentPage?: number;
|
|
50
|
+
pageSize?: number;
|
|
51
|
+
searchString?: string;
|
|
52
|
+
isAssigned?: boolean;
|
|
53
|
+
sortBy?: UserOrder;
|
|
54
|
+
orderBy?: string;
|
|
55
|
+
};
|
|
56
|
+
export type UserFilterField = {
|
|
57
|
+
currentPage?: number;
|
|
58
|
+
pageSize?: number;
|
|
59
|
+
searchString?: string;
|
|
60
|
+
isDescending?: boolean;
|
|
61
|
+
searchBy?: SearchBy;
|
|
62
|
+
searchStringBy?: string;
|
|
63
|
+
isStudentFilter?: boolean;
|
|
64
|
+
byStudent?: boolean;
|
|
65
|
+
};
|
|
66
|
+
export type UserColumn = {
|
|
67
|
+
isCenter?: boolean;
|
|
68
|
+
name: string;
|
|
69
|
+
sortBy?: UserOrder;
|
|
70
|
+
className?: string;
|
|
71
|
+
searchBy?: SearchBy;
|
|
72
|
+
getOption?: (user: any, t?: any) => FilterOption;
|
|
73
|
+
options?: FilterOption[];
|
|
74
|
+
onSelectAll?: Function;
|
|
75
|
+
isCheckAll?: boolean;
|
|
76
|
+
};
|
|
77
|
+
export type StudentAssign = {
|
|
78
|
+
studentId: number;
|
|
79
|
+
id: string;
|
|
80
|
+
email: string;
|
|
81
|
+
fullName: string;
|
|
82
|
+
gradeLevel: string;
|
|
83
|
+
phoneNumber: string;
|
|
84
|
+
isActive?: boolean;
|
|
85
|
+
dateOfBirth?: string;
|
|
86
|
+
profileImageFileName: string;
|
|
87
|
+
quote: string;
|
|
88
|
+
assistantName: string;
|
|
89
|
+
assistantEmail: string;
|
|
90
|
+
assistantUserId: string;
|
|
91
|
+
counselors: Array<ICounselor>;
|
|
92
|
+
secondaryTeacherName: string;
|
|
93
|
+
secondaryTeacherEmail: string;
|
|
94
|
+
secondaryTeacherUserId: string;
|
|
95
|
+
teachers: Array<ITeachers>;
|
|
96
|
+
};
|
|
97
|
+
export interface ITeachers {
|
|
98
|
+
teacherUserId: string;
|
|
99
|
+
mainTeacherName: string;
|
|
100
|
+
mainTeacherEmail: string;
|
|
101
|
+
mainTeacherId?: number;
|
|
102
|
+
}
|
|
103
|
+
export interface ICounselor {
|
|
104
|
+
counselorUserId: string;
|
|
105
|
+
counselorName: string;
|
|
106
|
+
counselorEmail: string;
|
|
107
|
+
studentId?: number;
|
|
108
|
+
}
|
|
109
|
+
export interface IStaffAssign {
|
|
110
|
+
teacher: {
|
|
111
|
+
id: string;
|
|
112
|
+
email: string;
|
|
113
|
+
}[];
|
|
114
|
+
assistantId: string;
|
|
115
|
+
assistantEmail: string;
|
|
116
|
+
counselors: {
|
|
117
|
+
id: string;
|
|
118
|
+
email: string;
|
|
119
|
+
}[];
|
|
120
|
+
secondaryTeacherId: string;
|
|
121
|
+
secondaryTeacherEmail: string;
|
|
122
|
+
gradeLevel?: string;
|
|
123
|
+
}
|
|
124
|
+
export type Counselor = {
|
|
125
|
+
id: string;
|
|
126
|
+
counselorId: number;
|
|
127
|
+
firstName: string;
|
|
128
|
+
lastName: string;
|
|
129
|
+
fullName: string;
|
|
130
|
+
email: string;
|
|
131
|
+
};
|
|
132
|
+
export type Assistant = {
|
|
133
|
+
id: string;
|
|
134
|
+
assistantId: number;
|
|
135
|
+
firstName: string;
|
|
136
|
+
lastName: string;
|
|
137
|
+
fullName: string;
|
|
138
|
+
email: string;
|
|
139
|
+
};
|
|
140
|
+
export type SecondaryTeacher = {
|
|
141
|
+
id: string;
|
|
142
|
+
secondaryTeacherId: number;
|
|
143
|
+
firstName: string;
|
|
144
|
+
lastName: string;
|
|
145
|
+
fullName: string;
|
|
146
|
+
email: string;
|
|
147
|
+
};
|
|
148
|
+
export type Teacher = {
|
|
149
|
+
id: string;
|
|
150
|
+
email: string;
|
|
151
|
+
};
|
|
152
|
+
export interface IOptions {
|
|
153
|
+
label: string;
|
|
154
|
+
value: string;
|
|
155
|
+
}
|
|
156
|
+
export type AssignStudentDto = {
|
|
157
|
+
id: string;
|
|
158
|
+
mainTeacherUserId?: Array<string>;
|
|
159
|
+
mainTeacherEmail?: Array<string>;
|
|
160
|
+
assistantUserId?: string;
|
|
161
|
+
assistantEmail?: string;
|
|
162
|
+
counselorUserIds?: Array<string>;
|
|
163
|
+
counselorEmails?: Array<string>;
|
|
164
|
+
secondaryTeacherUserId?: string;
|
|
165
|
+
secondaryTeacherEmail?: string;
|
|
166
|
+
removeTeacherUserIds?: string[];
|
|
167
|
+
teacherSwitchUserId?: string;
|
|
168
|
+
};
|
|
169
|
+
export type FilterOption = {
|
|
170
|
+
label: string;
|
|
171
|
+
value: string;
|
|
172
|
+
};
|
|
173
|
+
export declare enum UserOrder {
|
|
174
|
+
Id = 0,
|
|
175
|
+
Name = 1,
|
|
176
|
+
Email = 2,
|
|
177
|
+
Age = 3,
|
|
178
|
+
Role = 4,
|
|
179
|
+
Status = 5,
|
|
180
|
+
CreatedAt = 6,
|
|
181
|
+
RosterUser = 7,
|
|
182
|
+
Grade = 8,
|
|
183
|
+
Teacher = 9,
|
|
184
|
+
Assistant = 10,
|
|
185
|
+
Counselor = 11,
|
|
186
|
+
SecondaryTeacher = 12
|
|
187
|
+
}
|
|
188
|
+
export declare enum SearchBy {
|
|
189
|
+
Id = 0,
|
|
190
|
+
Name = 1,
|
|
191
|
+
Email = 2,
|
|
192
|
+
Role = 3,
|
|
193
|
+
RosterUser = 4,
|
|
194
|
+
Status = 5,
|
|
195
|
+
Grade = 6,
|
|
196
|
+
Teacher = 7,
|
|
197
|
+
Assistant = 8,
|
|
198
|
+
Counselor = 9,
|
|
199
|
+
SecondaryTeacher = 10
|
|
200
|
+
}
|
|
201
|
+
export declare enum TeacherType {
|
|
202
|
+
Teacher = 0,
|
|
203
|
+
Assistant = 1,
|
|
204
|
+
Counselor = 2,
|
|
205
|
+
SecondaryTeacher = 3
|
|
206
|
+
}
|
|
207
|
+
export type SwitchTeacherGroup = {
|
|
208
|
+
studentId: number;
|
|
209
|
+
teacher: string;
|
|
210
|
+
teacherChange: string;
|
|
211
|
+
};
|
|
212
|
+
export type SwitchAssistantGroup = {
|
|
213
|
+
studentId: number;
|
|
214
|
+
assistantUserId: string;
|
|
215
|
+
};
|
|
216
|
+
export interface IDeleteBulkModel {
|
|
217
|
+
open: boolean;
|
|
218
|
+
onClose: () => void;
|
|
219
|
+
teachers: Option[];
|
|
220
|
+
onChangeStaffRemove: Function;
|
|
221
|
+
switchStaffUsers: ISwitchStaffUser;
|
|
222
|
+
counselors: Option[];
|
|
223
|
+
assistants: Option[];
|
|
224
|
+
secondaryTeachers: Option[];
|
|
225
|
+
onRemoveBulkStaff: Function;
|
|
226
|
+
studentUserIds?: string[];
|
|
227
|
+
}
|
|
228
|
+
export interface IRemoveTeacher {
|
|
229
|
+
teachers: Option[];
|
|
230
|
+
onChangeStaffRemove: Function;
|
|
231
|
+
switchStaffUsers: ISwitchStaffUser;
|
|
232
|
+
}
|
|
233
|
+
export interface IRemoveAssistant {
|
|
234
|
+
assistants: Option[];
|
|
235
|
+
onChangeStaffRemove: Function;
|
|
236
|
+
switchStaffUsers: ISwitchStaffUser;
|
|
237
|
+
}
|
|
238
|
+
export interface IRemoveCounselor {
|
|
239
|
+
counselors: Option[];
|
|
240
|
+
onChangeStaffRemove: Function;
|
|
241
|
+
switchStaffUsers: ISwitchStaffUser;
|
|
242
|
+
}
|
|
243
|
+
export interface IRemoveSupportTeacher {
|
|
244
|
+
secondaryTeachers: Option[];
|
|
245
|
+
onChangeStaffRemove: Function;
|
|
246
|
+
switchStaffUsers: ISwitchStaffUser;
|
|
247
|
+
}
|
|
248
|
+
export interface ISwitchStaffUser {
|
|
249
|
+
teacherRemoveUserIds: string[];
|
|
250
|
+
teacherSwitchDataUserId: string;
|
|
251
|
+
assistantRemoveUserId: string[];
|
|
252
|
+
assistantSwitchDataUserId: string;
|
|
253
|
+
counselorRemoveUserIds: string[];
|
|
254
|
+
counselorSwitchDataUserId: string;
|
|
255
|
+
supportTeacherRemoveUserIds: string[];
|
|
256
|
+
supportTeacherSwitchDataUserId: string;
|
|
257
|
+
}
|
|
258
|
+
export type USER_CHOICE = {
|
|
259
|
+
id: string;
|
|
260
|
+
firstName: string;
|
|
261
|
+
lastName: string;
|
|
262
|
+
email: string;
|
|
263
|
+
fullName: string;
|
|
264
|
+
roles: string[];
|
|
265
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { IStaffAssign, ISwitchStaffUser, StudentAssign, TeacherType } from "../constants/types";
|
|
2
|
+
declare const useAssignStudent: (teacherSelected?: any, assistantSelected?: Record<string, any>, counselorSelected?: Record<string, any>, secondaryTeacherSelected?: Record<string, any>, callback?: Function, selectedUser?: StudentAssign, getDataUserList?: any, userSelected?: StudentAssign[]) => {
|
|
3
|
+
handleAssignSingleStudent: (id: string) => void;
|
|
4
|
+
handleAssignMultiStudent: (listUserIds: string[]) => void;
|
|
5
|
+
openModelBulk: boolean;
|
|
6
|
+
handleToggleModel: (listUserIds?: string[]) => void;
|
|
7
|
+
handleChangeStaffBulk: (name: string, value: any) => void;
|
|
8
|
+
staffBulkAssign: IStaffAssign;
|
|
9
|
+
onAssignStaffToStudents: (listUserIds: string[]) => Promise<void>;
|
|
10
|
+
handleToggleInactiveModal: (listUserIds?: string[]) => void;
|
|
11
|
+
openInactiveModal: boolean;
|
|
12
|
+
handleInactiveStudents: (listStudentIds: string[], callback: () => void) => Promise<void>;
|
|
13
|
+
handleChangeTeacherBulk: (value: any[]) => void;
|
|
14
|
+
handleEditAssignForStudents: (teacherUserId?: string) => Promise<void>;
|
|
15
|
+
handleToggleSwitchModel: (listUser: StudentAssign[], modal: TeacherType, options: any[]) => void;
|
|
16
|
+
openSwitchModal: boolean;
|
|
17
|
+
optionsSwitch: any[];
|
|
18
|
+
modalType: TeacherType;
|
|
19
|
+
textModal: any;
|
|
20
|
+
teacherSwitchList: any[];
|
|
21
|
+
onCloseSwitchModal: () => void;
|
|
22
|
+
handleUpdateSwitch: () => void;
|
|
23
|
+
setTeacherChangeUserId: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
24
|
+
setTeacherSelectForChangeUserId: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
25
|
+
teacherSelectForChangeUserId: string;
|
|
26
|
+
openDetailModal: boolean;
|
|
27
|
+
setOpenDetailModal: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
28
|
+
toggleCollapse: (index: number) => void;
|
|
29
|
+
activeIndex: number;
|
|
30
|
+
handleChangeCounselorBulk: (value: any[]) => void;
|
|
31
|
+
onClose: () => void;
|
|
32
|
+
removeTeacherUserIds: string[];
|
|
33
|
+
onSelectRemoveTeacher: (userId: string) => void;
|
|
34
|
+
openModelSwitchDataTeacher: boolean;
|
|
35
|
+
onToggleModelSwitchDataTeacher: () => void;
|
|
36
|
+
teacherSwitchUserId: string;
|
|
37
|
+
setTeacherSwitchUserId: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
38
|
+
onToggleModelDeleteBulk: (listUserIds?: string[]) => void;
|
|
39
|
+
openModelDeleteBulk: boolean;
|
|
40
|
+
handelChangeStaffRemove: (updatedFilters: any) => void;
|
|
41
|
+
switchStaffUsers: ISwitchStaffUser;
|
|
42
|
+
handleRemoveBulkStaff: (studentUserIds: string[]) => Promise<void>;
|
|
43
|
+
};
|
|
44
|
+
export default useAssignStudent;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ChangeEvent } from "react";
|
|
2
|
+
import { StudentAssign, StudentFilter, UserOrder } from "../constants/types";
|
|
3
|
+
declare const useAssignStudentList: () => {
|
|
4
|
+
handelSort: (sortBy: UserOrder) => void;
|
|
5
|
+
handleRetrievedData: () => void;
|
|
6
|
+
totalItem: number;
|
|
7
|
+
userList: StudentAssign[];
|
|
8
|
+
filters: StudentFilter;
|
|
9
|
+
changeFilters: (updatedFilters: any) => void;
|
|
10
|
+
handleSelectAll: () => void;
|
|
11
|
+
handleClickCheck: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
12
|
+
isCheckAll: boolean;
|
|
13
|
+
isCheck: any;
|
|
14
|
+
fullName: string;
|
|
15
|
+
selectedUser: StudentAssign;
|
|
16
|
+
setSelectedUser: import("react").Dispatch<import("react").SetStateAction<StudentAssign>>;
|
|
17
|
+
userSelected: StudentAssign[];
|
|
18
|
+
getDataUserList: () => Promise<void>;
|
|
19
|
+
studentTeacherSelected: {
|
|
20
|
+
value: string;
|
|
21
|
+
label: string;
|
|
22
|
+
}[];
|
|
23
|
+
studentCounselorSelected: {
|
|
24
|
+
value: string;
|
|
25
|
+
label: string;
|
|
26
|
+
}[];
|
|
27
|
+
studentAssistantSelected: {
|
|
28
|
+
value: string;
|
|
29
|
+
label: string;
|
|
30
|
+
}[];
|
|
31
|
+
studentSecondaryTeacherSelected: {
|
|
32
|
+
value: string;
|
|
33
|
+
label: string;
|
|
34
|
+
}[];
|
|
35
|
+
};
|
|
36
|
+
export default useAssignStudentList;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IOptions } from "../constants/types";
|
|
2
|
+
declare const useAssistantList: () => {
|
|
3
|
+
selectedAssistants: object | undefined;
|
|
4
|
+
assistantOptions: IOptions[];
|
|
5
|
+
handleSelectAssistant: (assistantId: string, studentUserId: string) => void;
|
|
6
|
+
handleCreateAssistantOption: (newAssistant: IOptions, studentUserId: string, isSelect?: boolean) => void;
|
|
7
|
+
setSelectedAssistants: import("react").Dispatch<import("react").SetStateAction<object | undefined>>;
|
|
8
|
+
};
|
|
9
|
+
export default useAssistantList;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
declare enum CSVType {
|
|
2
|
+
Students = "students",
|
|
3
|
+
Subjects = "subjects",
|
|
4
|
+
Grades = "grades",
|
|
5
|
+
Attendances = "attendances",
|
|
6
|
+
ClassReflection = "classReflection",
|
|
7
|
+
Others = "others",
|
|
8
|
+
AllUser = "allUser"
|
|
9
|
+
}
|
|
10
|
+
export interface Option {
|
|
11
|
+
label: string;
|
|
12
|
+
value: number;
|
|
13
|
+
}
|
|
14
|
+
declare const useCSVImport: () => {
|
|
15
|
+
isLoading: any;
|
|
16
|
+
id: string;
|
|
17
|
+
setType: import("react").Dispatch<import("react").SetStateAction<CSVType | null>>;
|
|
18
|
+
upload: (file: any) => Promise<void>;
|
|
19
|
+
initImportReflection: any;
|
|
20
|
+
setInitImportReflection: import("react").Dispatch<any>;
|
|
21
|
+
onConfirm: (values: any) => Promise<void>;
|
|
22
|
+
CSVType: typeof CSVType;
|
|
23
|
+
dataFile: any;
|
|
24
|
+
setDataFile: import("react").Dispatch<any>;
|
|
25
|
+
setArrStudent: import("react").Dispatch<any>;
|
|
26
|
+
arrStudent: any;
|
|
27
|
+
isCheckDomainIBS: boolean;
|
|
28
|
+
onChangeTeacher: (teacher: Option) => void;
|
|
29
|
+
uploadByTeacherId: (file: any) => Promise<void>;
|
|
30
|
+
setDataFileImportStudent: (dataFile: any) => void;
|
|
31
|
+
onUpLoadStudentFile: () => void;
|
|
32
|
+
defaultTeacher: number;
|
|
33
|
+
fileName: string;
|
|
34
|
+
onStudentSubmit: () => void;
|
|
35
|
+
downloadTemplateUser: () => Promise<void>;
|
|
36
|
+
};
|
|
37
|
+
export default useCSVImport;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
declare enum CSVType {
|
|
2
|
+
Students = "students",
|
|
3
|
+
Subjects = "subjects",
|
|
4
|
+
Grades = "grades",
|
|
5
|
+
Attendances = "attendances",
|
|
6
|
+
ClassReflection = "classReflection",
|
|
7
|
+
Others = "others",
|
|
8
|
+
AllUser = "allUser"
|
|
9
|
+
}
|
|
10
|
+
interface CSVImportButton {
|
|
11
|
+
text: string;
|
|
12
|
+
backgroundColor: string;
|
|
13
|
+
type: CSVType;
|
|
14
|
+
}
|
|
15
|
+
export interface Option {
|
|
16
|
+
label: string;
|
|
17
|
+
value: number;
|
|
18
|
+
}
|
|
19
|
+
declare const useCSVImportTab: () => {
|
|
20
|
+
isLoading: any;
|
|
21
|
+
buttons: CSVImportButton[];
|
|
22
|
+
id: string;
|
|
23
|
+
setType: import("react").Dispatch<import("react").SetStateAction<CSVType | null>>;
|
|
24
|
+
upload: (file: any) => Promise<void>;
|
|
25
|
+
initImportReflection: any;
|
|
26
|
+
setInitImportReflection: import("react").Dispatch<any>;
|
|
27
|
+
onConfirm: (values: any) => Promise<void>;
|
|
28
|
+
CSVType: typeof CSVType;
|
|
29
|
+
dataFile: any;
|
|
30
|
+
setDataFile: import("react").Dispatch<any>;
|
|
31
|
+
setArrStudent: import("react").Dispatch<any>;
|
|
32
|
+
arrStudent: any;
|
|
33
|
+
isCheckDomainIBS: boolean;
|
|
34
|
+
onChangeTeacher: (teacher: Option) => void;
|
|
35
|
+
uploadByTeacherId: (file: any) => Promise<void>;
|
|
36
|
+
setDataFileImportStudent: (dataFile: any) => void;
|
|
37
|
+
onUpLoadStudentFile: () => void;
|
|
38
|
+
defaultTeacher: number;
|
|
39
|
+
fileName: string;
|
|
40
|
+
onStudentSubmit: () => void;
|
|
41
|
+
downloadTemplateUser: () => Promise<void>;
|
|
42
|
+
errorsValidate: string[];
|
|
43
|
+
setErrorsValidate: import("react").Dispatch<import("react").SetStateAction<string[]>>;
|
|
44
|
+
};
|
|
45
|
+
export default useCSVImportTab;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IOptions } from "../constants/types";
|
|
2
|
+
declare const useCounselorList: () => {
|
|
3
|
+
selectedCounselors: object | undefined;
|
|
4
|
+
counselorOptions: IOptions[];
|
|
5
|
+
handleSelectCounselor: (counselorId: string, studentUserId: string) => void;
|
|
6
|
+
handleCreateCounselorOption: (newCounselor: IOptions, studentUserId: string, isSelect?: boolean) => void;
|
|
7
|
+
setSelectedCounselors: import("react").Dispatch<import("react").SetStateAction<object | undefined>>;
|
|
8
|
+
};
|
|
9
|
+
export default useCounselorList;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ChangeEvent } from "react";
|
|
2
|
+
import { FilterOption, SearchBy, UserFilter, UserOrder } from "../constants/types";
|
|
3
|
+
import { PopoverProps } from "reactstrap";
|
|
4
|
+
interface Props extends PopoverProps {
|
|
5
|
+
filters?: UserFilter;
|
|
6
|
+
sortBy: UserOrder;
|
|
7
|
+
searchBy?: SearchBy;
|
|
8
|
+
users: string[];
|
|
9
|
+
defaultOptions?: FilterOption[];
|
|
10
|
+
selectedOptions?: string[];
|
|
11
|
+
searchKey: string;
|
|
12
|
+
onChangeSearchKey: (value: string) => void;
|
|
13
|
+
onOptionsChange?: (value?: string[], searchBy?: SearchBy) => void;
|
|
14
|
+
onSearch?: (search: string, searchBy: SearchBy) => void;
|
|
15
|
+
onClose?: () => void;
|
|
16
|
+
onFilter?: () => void;
|
|
17
|
+
onChangeFilters?: (filter: UserFilter) => void;
|
|
18
|
+
getOption?: (user: any, t?: any) => FilterOption;
|
|
19
|
+
}
|
|
20
|
+
declare const useFilterPopover: (props: Props) => {
|
|
21
|
+
ref: import("react").RefObject<HTMLDivElement>;
|
|
22
|
+
options: FilterOption[];
|
|
23
|
+
inputRef: import("react").MutableRefObject<any>;
|
|
24
|
+
sOptions: any[] | undefined;
|
|
25
|
+
isAscending: boolean;
|
|
26
|
+
isDescending: boolean;
|
|
27
|
+
filteredOptions: FilterOption[];
|
|
28
|
+
searchKey: string;
|
|
29
|
+
handleSearch: () => void;
|
|
30
|
+
handleApplyFilter: () => void;
|
|
31
|
+
handleOptionSelected: (e?: any) => void;
|
|
32
|
+
handleOptionSelectedAll: (e?: any) => void;
|
|
33
|
+
handleSortDesc: () => void;
|
|
34
|
+
handleSortAsc: () => void;
|
|
35
|
+
handleChangeSearchKey: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
36
|
+
};
|
|
37
|
+
export default useFilterPopover;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Option } from "../constants/types";
|
|
2
|
+
declare const useRosterUserSelector: (roles: string[], value?: string) => {
|
|
3
|
+
users: Option[];
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
user: Option | undefined;
|
|
6
|
+
handleInputChange: (value: string) => void;
|
|
7
|
+
};
|
|
8
|
+
export default useRosterUserSelector;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IOptions } from "../constants/types";
|
|
2
|
+
declare const useSecondaryTeacherList: () => {
|
|
3
|
+
selectedSecondaryTeachers: object | undefined;
|
|
4
|
+
secondaryTeacherOptions: IOptions[];
|
|
5
|
+
handleSelectSecondaryTeacher: (secondaryTeacherId: string, studentUserId: string) => void;
|
|
6
|
+
handleCreateSecondaryTeacherOption: (newSecondaryTeacher: IOptions, studentUserId: string, isSelect?: boolean) => void;
|
|
7
|
+
setSelectedSecondaryTeachers: import("react").Dispatch<import("react").SetStateAction<object | undefined>>;
|
|
8
|
+
};
|
|
9
|
+
export default useSecondaryTeacherList;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SearchBy, UserFilter, UserFilterField, UserOrder } from "../constants/types";
|
|
2
|
+
interface Props {
|
|
3
|
+
filters: UserFilter;
|
|
4
|
+
onChangeFilters?: (filter: UserFilter) => void;
|
|
5
|
+
isStudentFilter?: boolean;
|
|
6
|
+
teacherOptions?: any[];
|
|
7
|
+
assistantOptions?: any[];
|
|
8
|
+
counselorOptions?: any[];
|
|
9
|
+
secondaryTeacherOptions?: any[];
|
|
10
|
+
}
|
|
11
|
+
declare const useTableHeader: (props: Props) => {
|
|
12
|
+
popoverFilters: UserFilterField;
|
|
13
|
+
popoverId: string | undefined;
|
|
14
|
+
users: string[];
|
|
15
|
+
handleFilterIcon: (id: string, searchBy?: SearchBy, searchStringBy?: string, sortBy?: UserOrder) => void;
|
|
16
|
+
handleCloseFilter: () => void;
|
|
17
|
+
handleSearch: (search: string, searchBy?: SearchBy) => void;
|
|
18
|
+
handleChangeFilters: (value?: string[], searchBy?: SearchBy) => void;
|
|
19
|
+
};
|
|
20
|
+
export default useTableHeader;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IOptions } from "../constants/types";
|
|
2
|
+
declare const useTeacherList: () => {
|
|
3
|
+
selectedTeachers: object | undefined;
|
|
4
|
+
teacherOptions: IOptions[];
|
|
5
|
+
handleSelectTeacher: (teacherIds: Array<string>, studentUserId: string) => void;
|
|
6
|
+
handleCreateTeacherOption: (newTeacher: IOptions, studentUserId: string, isSelectTeacher?: boolean) => void;
|
|
7
|
+
setSelectedTeachers: import("react").Dispatch<import("react").SetStateAction<object | undefined>>;
|
|
8
|
+
};
|
|
9
|
+
export default useTeacherList;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { USER_CHOICE } from "../constants/types";
|
|
2
|
+
declare const useUserDeletedList: () => {
|
|
3
|
+
userList: USER_CHOICE[];
|
|
4
|
+
totalItems: number;
|
|
5
|
+
filters: import("../../..").Filter;
|
|
6
|
+
getData: () => Promise<void>;
|
|
7
|
+
removeData: (id: string) => void;
|
|
8
|
+
changeFilters: (updatedFilters: any) => void;
|
|
9
|
+
modal: import("react").MutableRefObject<any>;
|
|
10
|
+
openModal: () => void;
|
|
11
|
+
userChoiced: USER_CHOICE;
|
|
12
|
+
setUserChoiced: import("react").Dispatch<import("react").SetStateAction<USER_CHOICE>>;
|
|
13
|
+
options: {
|
|
14
|
+
label: string;
|
|
15
|
+
value: any;
|
|
16
|
+
}[];
|
|
17
|
+
teacherChangeId: string;
|
|
18
|
+
setTeacherChangeId: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
19
|
+
resetData: () => void;
|
|
20
|
+
};
|
|
21
|
+
export default useUserDeletedList;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { USER_CHOICE } from "../constants/types";
|
|
2
|
+
declare const useUserDeletedModal: () => {
|
|
3
|
+
userChoiced: USER_CHOICE;
|
|
4
|
+
setUserChoiced: import("react").Dispatch<import("react").SetStateAction<USER_CHOICE>>;
|
|
5
|
+
teacherList: never[];
|
|
6
|
+
options: {
|
|
7
|
+
label: string;
|
|
8
|
+
value: any;
|
|
9
|
+
}[];
|
|
10
|
+
setTeacherChangeId: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
11
|
+
teacherChangeId: string;
|
|
12
|
+
};
|
|
13
|
+
export default useUserDeletedModal;
|
|
@@ -1,22 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
id?: string;
|
|
4
|
-
firstName: string;
|
|
5
|
-
lastName: string;
|
|
6
|
-
email?: string;
|
|
7
|
-
dateOfBirth?: string;
|
|
8
|
-
roles: string[];
|
|
9
|
-
isActive: boolean;
|
|
10
|
-
profileImageFileName: string;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
};
|
|
22
|
-
|
|
1
|
+
import { IOptions } from "../constants/types";
|
|
2
|
+
type UserDetail = {
|
|
3
|
+
id?: string;
|
|
4
|
+
firstName: string;
|
|
5
|
+
lastName: string;
|
|
6
|
+
email?: string;
|
|
7
|
+
dateOfBirth?: string;
|
|
8
|
+
roles: string[];
|
|
9
|
+
isActive: boolean;
|
|
10
|
+
profileImageFileName: string;
|
|
11
|
+
sourcedId?: string;
|
|
12
|
+
teacherUserId?: string[];
|
|
13
|
+
gradeLevel?: string;
|
|
14
|
+
};
|
|
15
|
+
type IUerRoleDataCheck = {
|
|
16
|
+
isHasTeacherData: boolean;
|
|
17
|
+
isHasEduTeacherData: boolean;
|
|
18
|
+
isHasAssistantData: boolean;
|
|
19
|
+
isHasCounselorData: boolean;
|
|
20
|
+
isHasSecondaryTeacherData: boolean;
|
|
21
|
+
};
|
|
22
|
+
declare const useUserDetail: (id?: string) => {
|
|
23
|
+
userDetail: UserDetail;
|
|
24
|
+
backToList: (user?: string) => void;
|
|
25
|
+
confirmData: (data: any) => Promise<void>;
|
|
26
|
+
file: any;
|
|
27
|
+
setFile: import("react").Dispatch<any>;
|
|
28
|
+
edited: boolean;
|
|
29
|
+
setEdited: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
30
|
+
setEditedTrue: () => Promise<void>;
|
|
31
|
+
confirmChangePassword: (data: any) => Promise<void>;
|
|
32
|
+
forgotPasswordRequest: (data: any) => Promise<void>;
|
|
33
|
+
currentRoles: string[];
|
|
34
|
+
handleDisableRoles: (currentRoles: string) => boolean;
|
|
35
|
+
handleResetPassword: (userId: string) => Promise<void>;
|
|
36
|
+
teacherOptions: IOptions[];
|
|
37
|
+
openModel: boolean;
|
|
38
|
+
handleToggleModel: () => void;
|
|
39
|
+
userHasData: IUerRoleDataCheck;
|
|
40
|
+
};
|
|
41
|
+
export default useUserDetail;
|