mario-core 2.9.108-beta → 2.9.110-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/components/Alerts/SandboxAlert.d.ts +3 -0
- package/dist/components/Buttons/SyncButton.d.ts +8 -0
- package/dist/components/Inputs/PasswordInput.d.ts +1 -0
- package/dist/components/Modals/ModelSelectRole.d.ts +7 -0
- package/dist/components/Modals/NotificationLogoutModal.d.ts +3 -0
- package/dist/containers/Login/constant/types.d.ts +7 -0
- package/dist/containers/Login/hooks/useCreatePassword.d.ts +13 -0
- package/dist/containers/Login/hooks/useForgotPassword.d.ts +2 -0
- package/dist/containers/Login/views/Login.d.ts +1 -0
- package/dist/containers/Login/views/block/BlockBackground.d.ts +7 -0
- package/dist/containers/Login/views/block/BlockCreatePassword.d.ts +3 -0
- package/dist/containers/User/components/FilterPopover.d.ts +21 -0
- package/dist/containers/User/components/HeaderCell.d.ts +17 -0
- package/dist/containers/User/components/TableHeader.d.ts +10 -0
- package/dist/containers/User/components/TeacherSelector.d.ts +3 -0
- package/dist/containers/User/constants/constants.d.ts +20 -0
- package/dist/containers/User/constants/types.d.ts +157 -0
- package/dist/containers/User/hooks/useAssignStudent.d.ts +5 -0
- package/dist/containers/User/hooks/useAssignStudentList.d.ts +14 -0
- package/dist/containers/User/hooks/useAssistantList.d.ts +10 -0
- package/dist/containers/User/hooks/useClickOutside.d.ts +2 -0
- package/dist/containers/User/hooks/useCounselorList.d.ts +10 -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/useRosterUserSelector.d.ts +8 -0
- package/dist/containers/User/hooks/useSecondaryTeacherList.d.ts +10 -0
- package/dist/containers/User/hooks/useTableHeader.d.ts +15 -0
- package/dist/containers/User/hooks/useTeacherList.d.ts +10 -0
- package/dist/containers/User/hooks/useUserDetail.d.ts +4 -0
- package/dist/containers/User/hooks/useUserList.d.ts +5 -2
- package/dist/containers/User/hooks/userFilters.d.ts +8 -0
- package/dist/containers/User/views/AssignStudentList.d.ts +3 -0
- package/dist/containers/User/views/RosterUserSelector.d.ts +8 -0
- package/dist/containers/User/views/UserContainer.d.ts +3 -0
- package/dist/index.css +114 -25
- package/dist/index.d.ts +7 -3
- package/dist/index.js +27374 -5537
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +27370 -5543
- package/dist/index.modern.js.map +1 -1
- package/dist/layouts/TheHeader.d.ts +4 -1
- package/dist/layouts/TheHeaderDropdown.d.ts +4 -1
- package/dist/redux/commons/action.d.ts +1 -0
- package/dist/services/accountService.d.ts +3 -0
- package/dist/services/schoolService.d.ts +1 -0
- package/dist/services/userService.d.ts +16 -1
- package/dist/types/Filter.d.ts +6 -0
- package/dist/types/Language.d.ts +8 -0
- package/dist/types/user.d.ts +3 -0
- package/dist/utils/constants.d.ts +9 -1
- package/dist/utils/getStaticFileUrl.d.ts +2 -0
- package/package.json +101 -100
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ICreatePassword } from "../constant/types";
|
|
3
|
+
declare const useCreatePassword: () => {
|
|
4
|
+
createPasswordRequest: (data: ICreatePassword) => Promise<void>;
|
|
5
|
+
isShowNewPassword: boolean;
|
|
6
|
+
setIsShowNewPassword: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
7
|
+
isShowReTypePassword: boolean;
|
|
8
|
+
setIsShowReTypePassword: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
9
|
+
clickHandler: () => Promise<any>;
|
|
10
|
+
handleVerify: () => void;
|
|
11
|
+
initialValues: ICreatePassword;
|
|
12
|
+
};
|
|
13
|
+
export default useCreatePassword;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { ICreatePassword } from "../constant/types";
|
|
2
3
|
declare type ForgotPasswordInfo = {
|
|
3
4
|
email: string;
|
|
4
5
|
captcha: string;
|
|
@@ -17,5 +18,6 @@ declare const useForgotPassword: () => {
|
|
|
17
18
|
setIsShowReTypePassword: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
18
19
|
clickHandler: () => Promise<any>;
|
|
19
20
|
handleVerify: () => void;
|
|
21
|
+
initialValues: ICreatePassword;
|
|
20
22
|
};
|
|
21
23
|
export default useForgotPassword;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { PopoverProps } from "reactstrap";
|
|
3
|
+
import { FilterOption, SearchBy, UserFilter, UserOrder } from "../constants/types";
|
|
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 FilterPopover: FC<Props>;
|
|
21
|
+
export default FilterPopover;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { SearchBy, UserColumn, UserFilter, UserOrder } from "../constants/types";
|
|
3
|
+
interface Props {
|
|
4
|
+
data: UserColumn;
|
|
5
|
+
popoverId?: string;
|
|
6
|
+
filters?: UserFilter;
|
|
7
|
+
searchString?: string;
|
|
8
|
+
users: string[];
|
|
9
|
+
selectedOptions?: string[];
|
|
10
|
+
onOptionsChange?: (value?: string[], searchBy?: SearchBy) => void;
|
|
11
|
+
onSearch?: (search: string, searchBy: SearchBy) => void;
|
|
12
|
+
onOpenFilter?: (id: string, searchBy?: SearchBy, searchStringBy?: string, sortBy?: UserOrder) => void;
|
|
13
|
+
onClose?: () => void;
|
|
14
|
+
onChangeFilters?: (filter: UserFilter) => void;
|
|
15
|
+
}
|
|
16
|
+
declare const HeaderCell: FC<Props>;
|
|
17
|
+
export default HeaderCell;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { UserColumn, UserFilter } from "../constants/types";
|
|
3
|
+
interface Props {
|
|
4
|
+
headers: UserColumn[];
|
|
5
|
+
filters: UserFilter;
|
|
6
|
+
fullName?: string;
|
|
7
|
+
onChangeFilters?: (filter: UserFilter) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const TableHeader: FC<Props>;
|
|
10
|
+
export default TableHeader;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { StudentFilter, UserColumn, UserFilter, UserOrder } from "./types";
|
|
2
|
+
export declare const userOrders: {
|
|
3
|
+
0: string;
|
|
4
|
+
1: string;
|
|
5
|
+
2: string;
|
|
6
|
+
3: string;
|
|
7
|
+
4: string;
|
|
8
|
+
5: string;
|
|
9
|
+
6: string;
|
|
10
|
+
7: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const UserColumns: UserColumn[];
|
|
13
|
+
export declare const DEFAULT_PAGE_SIZE: {
|
|
14
|
+
label: string;
|
|
15
|
+
value: number;
|
|
16
|
+
};
|
|
17
|
+
export declare const DEFAULT_FILTER: UserFilter;
|
|
18
|
+
export declare const DEFAULT_STUDENT_FILTER: StudentFilter;
|
|
19
|
+
export declare const DEFAULT_FILTER_POPOVER: UserFilter;
|
|
20
|
+
export declare const CSV_PREFIX = "data:text/csv;charset=utf-8,";
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
export declare 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
|
+
};
|
|
17
|
+
export declare type RosterUser = {
|
|
18
|
+
sourcedId: string;
|
|
19
|
+
username: string;
|
|
20
|
+
status: string;
|
|
21
|
+
givenName: string;
|
|
22
|
+
middleName: string;
|
|
23
|
+
familyName: string;
|
|
24
|
+
email: string;
|
|
25
|
+
grades: string;
|
|
26
|
+
role: string;
|
|
27
|
+
};
|
|
28
|
+
export declare type Option = {
|
|
29
|
+
label: string;
|
|
30
|
+
value: string;
|
|
31
|
+
};
|
|
32
|
+
export declare type UserFilter = {
|
|
33
|
+
currentPage?: number;
|
|
34
|
+
pageSize?: number;
|
|
35
|
+
searchString?: string;
|
|
36
|
+
isDescending?: boolean;
|
|
37
|
+
sortBy?: UserOrder;
|
|
38
|
+
searchBy?: SearchBy;
|
|
39
|
+
searchByStrings?: string[];
|
|
40
|
+
};
|
|
41
|
+
export declare type StudentFilter = {
|
|
42
|
+
currentPage?: number;
|
|
43
|
+
pageSize?: number;
|
|
44
|
+
searchString?: string;
|
|
45
|
+
isAssigned?: boolean;
|
|
46
|
+
sortBy?: UserOrder;
|
|
47
|
+
orderBy?: string;
|
|
48
|
+
};
|
|
49
|
+
export declare type UserFilterField = {
|
|
50
|
+
currentPage?: number;
|
|
51
|
+
pageSize?: number;
|
|
52
|
+
searchString?: string;
|
|
53
|
+
isDescending?: boolean;
|
|
54
|
+
searchBy?: SearchBy;
|
|
55
|
+
searchStringBy?: string;
|
|
56
|
+
};
|
|
57
|
+
export declare type UserColumn = {
|
|
58
|
+
name: string;
|
|
59
|
+
sortBy?: UserOrder;
|
|
60
|
+
className?: string;
|
|
61
|
+
searchBy?: SearchBy;
|
|
62
|
+
getOption?: (user: any, t?: any) => FilterOption;
|
|
63
|
+
options?: FilterOption[];
|
|
64
|
+
};
|
|
65
|
+
export declare type StudentAssign = {
|
|
66
|
+
studentId: number;
|
|
67
|
+
teacherUserId: string;
|
|
68
|
+
id: string;
|
|
69
|
+
email: string;
|
|
70
|
+
fullName: string;
|
|
71
|
+
gradeLevel: string;
|
|
72
|
+
phoneNumber: string;
|
|
73
|
+
isActive?: boolean;
|
|
74
|
+
dateOfBirth?: string;
|
|
75
|
+
profileImageFileName: string;
|
|
76
|
+
quote: string;
|
|
77
|
+
assistantName: string;
|
|
78
|
+
assistantEmail: string;
|
|
79
|
+
counselorName: string;
|
|
80
|
+
counselorEmail: string;
|
|
81
|
+
secondaryTeacherName: string;
|
|
82
|
+
secondaryTeacherEmail: string;
|
|
83
|
+
mainTeacherName: string;
|
|
84
|
+
mainTeacherEmail: string;
|
|
85
|
+
mainTeacherId?: number;
|
|
86
|
+
};
|
|
87
|
+
export declare type Counselor = {
|
|
88
|
+
id: string;
|
|
89
|
+
counselorId: number;
|
|
90
|
+
firstName: string;
|
|
91
|
+
lastName: string;
|
|
92
|
+
fullName: string;
|
|
93
|
+
email: string;
|
|
94
|
+
};
|
|
95
|
+
export declare type Assistant = {
|
|
96
|
+
id: string;
|
|
97
|
+
assistantId: number;
|
|
98
|
+
firstName: string;
|
|
99
|
+
lastName: string;
|
|
100
|
+
fullName: string;
|
|
101
|
+
email: string;
|
|
102
|
+
};
|
|
103
|
+
export declare type SecondaryTeacher = {
|
|
104
|
+
id: string;
|
|
105
|
+
secondaryTeacherId: number;
|
|
106
|
+
firstName: string;
|
|
107
|
+
lastName: string;
|
|
108
|
+
fullName: string;
|
|
109
|
+
email: string;
|
|
110
|
+
};
|
|
111
|
+
export declare type Teacher = {
|
|
112
|
+
id: string;
|
|
113
|
+
email: string;
|
|
114
|
+
};
|
|
115
|
+
export interface IOptions {
|
|
116
|
+
label: string;
|
|
117
|
+
value: string;
|
|
118
|
+
}
|
|
119
|
+
export declare type AssignStudentDto = {
|
|
120
|
+
id: string;
|
|
121
|
+
mainTeacherUserId?: string;
|
|
122
|
+
mainTeacherEmail?: string;
|
|
123
|
+
assistantUserId?: string;
|
|
124
|
+
assistantEmail?: string;
|
|
125
|
+
counselorUserId?: string;
|
|
126
|
+
counselorEmail?: string;
|
|
127
|
+
secondaryTeacherUserId?: string;
|
|
128
|
+
secondaryTeacherEmail?: string;
|
|
129
|
+
};
|
|
130
|
+
export declare type FilterOption = {
|
|
131
|
+
label: string;
|
|
132
|
+
value: string;
|
|
133
|
+
};
|
|
134
|
+
export declare enum UserOrder {
|
|
135
|
+
Id = 0,
|
|
136
|
+
Name = 1,
|
|
137
|
+
Email = 2,
|
|
138
|
+
Age = 3,
|
|
139
|
+
Role = 4,
|
|
140
|
+
Status = 5,
|
|
141
|
+
CreatedAt = 6,
|
|
142
|
+
RosterUser = 7
|
|
143
|
+
}
|
|
144
|
+
export declare enum SearchBy {
|
|
145
|
+
Id = 0,
|
|
146
|
+
Name = 1,
|
|
147
|
+
Email = 2,
|
|
148
|
+
Role = 3,
|
|
149
|
+
RosterUser = 4,
|
|
150
|
+
Status = 5
|
|
151
|
+
}
|
|
152
|
+
export declare enum TeacherType {
|
|
153
|
+
Teacher = 0,
|
|
154
|
+
Assistant = 1,
|
|
155
|
+
Counselor = 2,
|
|
156
|
+
SecondaryTeacher = 3
|
|
157
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
declare const useAssignStudent: (teacherSelected?: object | undefined, assistantSelected?: object | undefined, counselorSelected?: object | undefined, secondaryTeacherSelected?: object | undefined, callback?: Function | undefined) => {
|
|
2
|
+
handleAssignSingleStudent: (id: string) => void;
|
|
3
|
+
handleAssignMultiStudent: (listUserIds: string[]) => void;
|
|
4
|
+
};
|
|
5
|
+
export default useAssignStudent;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { StudentAssign, StudentFilter, UserOrder } from "../constants/types";
|
|
2
|
+
declare const useAssignStudentList: () => {
|
|
3
|
+
handelSort: (sortBy: UserOrder) => void;
|
|
4
|
+
handleRetrievedData: () => void;
|
|
5
|
+
totalItem: number;
|
|
6
|
+
userList: StudentAssign[];
|
|
7
|
+
filters: StudentFilter;
|
|
8
|
+
changeFilters: (updatedFilters: any) => void;
|
|
9
|
+
handleSelectAll: () => void;
|
|
10
|
+
handleClickCheck: (e: any) => void;
|
|
11
|
+
isCheckAll: boolean;
|
|
12
|
+
isCheck: any;
|
|
13
|
+
};
|
|
14
|
+
export default useAssignStudentList;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IOptions } from "../constants/types";
|
|
3
|
+
declare const useAssistantList: () => {
|
|
4
|
+
selectedAssistants: object | undefined;
|
|
5
|
+
assistantOptions: IOptions[];
|
|
6
|
+
handleSelectAssistant: (assistantId: string, studentUserId: string) => void;
|
|
7
|
+
handleCreateAssistantOption: (newAssistant: IOptions, studentUserId: string) => void;
|
|
8
|
+
setSelectedAssistants: import("react").Dispatch<import("react").SetStateAction<object | undefined>>;
|
|
9
|
+
};
|
|
10
|
+
export default useAssistantList;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IOptions } from "../constants/types";
|
|
3
|
+
declare const useCounselorList: () => {
|
|
4
|
+
selectedCounselors: object | undefined;
|
|
5
|
+
counselorOptions: IOptions[];
|
|
6
|
+
handleSelectCounselor: (counselorId: string, studentUserId: string) => void;
|
|
7
|
+
handleCreateCounselorOption: (newCounselor: IOptions, studentUserId: string) => void;
|
|
8
|
+
setSelectedCounselors: import("react").Dispatch<import("react").SetStateAction<object | undefined>>;
|
|
9
|
+
};
|
|
10
|
+
export default useCounselorList;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/// <reference types="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: React.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 | undefined) => {
|
|
3
|
+
users: Option[];
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
user: Option | undefined;
|
|
6
|
+
handleInputChange: (value: string) => void;
|
|
7
|
+
};
|
|
8
|
+
export default useRosterUserSelector;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IOptions } from "../constants/types";
|
|
3
|
+
declare const useSecondaryTeacherList: () => {
|
|
4
|
+
selectedSecondaryTeachers: object | undefined;
|
|
5
|
+
secondaryTeacherOptions: IOptions[];
|
|
6
|
+
handleSelectSecondaryTeacher: (secondaryTeacherId: string, studentUserId: string) => void;
|
|
7
|
+
handleCreateSecondaryTeacherOption: (newSecondaryTeacher: IOptions, studentUserId: string) => void;
|
|
8
|
+
setSelectedSecondaryTeachers: import("react").Dispatch<import("react").SetStateAction<object | undefined>>;
|
|
9
|
+
};
|
|
10
|
+
export default useSecondaryTeacherList;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SearchBy, UserFilter, UserFilterField, UserOrder } from "../constants/types";
|
|
2
|
+
interface Props {
|
|
3
|
+
filters: UserFilter;
|
|
4
|
+
onChangeFilters?: (filter: UserFilter) => void;
|
|
5
|
+
}
|
|
6
|
+
declare const useTableHeader: (props: Props) => {
|
|
7
|
+
popoverFilters: UserFilterField;
|
|
8
|
+
popoverId: string | undefined;
|
|
9
|
+
users: string[];
|
|
10
|
+
handleFilterIcon: (id: string, searchBy?: SearchBy | undefined, searchStringBy?: string | undefined, sortBy?: UserOrder | undefined) => void;
|
|
11
|
+
handleCloseFilter: () => void;
|
|
12
|
+
handleSearch: (search: string, searchBy?: SearchBy | undefined) => void;
|
|
13
|
+
handleChangeFilters: (value?: string[] | undefined, searchBy?: SearchBy | undefined) => void;
|
|
14
|
+
};
|
|
15
|
+
export default useTableHeader;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IOptions } from "../constants/types";
|
|
3
|
+
declare const useTeacherList: () => {
|
|
4
|
+
selectedTeachers: object | undefined;
|
|
5
|
+
teacherOptions: IOptions[];
|
|
6
|
+
handleSelectTeacher: (teacherId: string, studentUserId: string) => void;
|
|
7
|
+
handleCreateTeacherOption: (newTeacher: IOptions, studentUserId: string) => void;
|
|
8
|
+
setSelectedTeachers: import("react").Dispatch<import("react").SetStateAction<object | undefined>>;
|
|
9
|
+
};
|
|
10
|
+
export default useTeacherList;
|
|
@@ -8,6 +8,7 @@ declare type UserDetail = {
|
|
|
8
8
|
roles: string[];
|
|
9
9
|
isActive: boolean;
|
|
10
10
|
profileImageFileName: string;
|
|
11
|
+
sourcedId?: string;
|
|
11
12
|
};
|
|
12
13
|
declare const useUserDetail: (id?: string | undefined) => {
|
|
13
14
|
userDetail: UserDetail;
|
|
@@ -20,5 +21,8 @@ declare const useUserDetail: (id?: string | undefined) => {
|
|
|
20
21
|
setEditedTrue: () => Promise<void>;
|
|
21
22
|
confirmChangePassword: (data: any) => Promise<void>;
|
|
22
23
|
forgotPasswordRequest: (data: any) => Promise<void>;
|
|
24
|
+
currentRoles: string[];
|
|
25
|
+
handleDisableRoles: (currentRoles: string) => boolean;
|
|
26
|
+
handleResetPassword: (userId: string) => Promise<void>;
|
|
23
27
|
};
|
|
24
28
|
export default useUserDetail;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
declare const useUserList: () => {
|
|
2
2
|
userList: any;
|
|
3
3
|
totalItems: any;
|
|
4
|
-
filters: import("
|
|
4
|
+
filters: import("../constants/types").UserFilter;
|
|
5
5
|
queryName: string | null;
|
|
6
|
-
|
|
6
|
+
fullName: string;
|
|
7
|
+
getData: () => Promise<void>;
|
|
7
8
|
removeData: (id: string) => void;
|
|
8
9
|
changeFilters: (updatedFilters: any) => void;
|
|
9
10
|
reDirectDetailPage: (id?: number | undefined) => void;
|
|
10
11
|
swicthUser: (id: string) => Promise<void>;
|
|
12
|
+
handleSyncRosterUsers: () => Promise<void>;
|
|
13
|
+
rosterUserInfo: (record: any) => string;
|
|
11
14
|
};
|
|
12
15
|
export default useUserList;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { UserFilter } from "../constants/types";
|
|
3
|
+
declare const useFilters: () => {
|
|
4
|
+
filters: UserFilter;
|
|
5
|
+
setFilters: import("react").Dispatch<import("react").SetStateAction<UserFilter>>;
|
|
6
|
+
changeFilters: (updatedFilters: any) => void;
|
|
7
|
+
};
|
|
8
|
+
export default useFilters;
|