@ubkinfotech/tecaher-erp 0.1.0
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/LICENSE +21 -0
- package/README.md +413 -0
- package/lib/commonjs/core/api/apiClient.js +38 -0
- package/lib/commonjs/core/api/endpoints.js +139 -0
- package/lib/commonjs/core/api/interceptor.js +64 -0
- package/lib/commonjs/core/auth/authContext.js +30 -0
- package/lib/commonjs/core/auth/authService.js +12 -0
- package/lib/commonjs/core/hooks/useApiQuery.js +26 -0
- package/lib/commonjs/core/provider/ERPProvider.js +63 -0
- package/lib/commonjs/core/provider/types.js +5 -0
- package/lib/commonjs/core/provider/useERP.js +17 -0
- package/lib/commonjs/core/types/api.js +1 -0
- package/lib/commonjs/index.js +110 -0
- package/lib/commonjs/modules/assignment/hooks/useAssignmentList.js +16 -0
- package/lib/commonjs/modules/assignment/hooks/useHomeworkDetails.js +16 -0
- package/lib/commonjs/modules/assignment/hooks/useHomeworkSubmissions.js +16 -0
- package/lib/commonjs/modules/assignment/screens/AssignmentScreen.js +2615 -0
- package/lib/commonjs/modules/assignment/services/assignmentService.js +75 -0
- package/lib/commonjs/modules/attendance/hooks/useAttendance.js +16 -0
- package/lib/commonjs/modules/attendance/screens/AttendanceScreen.js +866 -0
- package/lib/commonjs/modules/attendance/services/attendanceService.js +31 -0
- package/lib/commonjs/modules/leaveRequest/hooks/useLeaveRequests.js +16 -0
- package/lib/commonjs/modules/leaveRequest/screens/LeaveRequestScreen.js +991 -0
- package/lib/commonjs/modules/leaveRequest/services/leaveRequestService.js +42 -0
- package/lib/commonjs/modules/marks/hooks/useMarks.js +14 -0
- package/lib/commonjs/modules/marks/screens/MarksScreen.js +1621 -0
- package/lib/commonjs/modules/marks/services/marksService.js +71 -0
- package/lib/commonjs/modules/myAttendance/hooks/useMyAttendance.js +16 -0
- package/lib/commonjs/modules/myAttendance/screens/MyAttendanceScreen.js +357 -0
- package/lib/commonjs/modules/myAttendance/services/myAttendanceService.js +11 -0
- package/lib/commonjs/modules/notes/hooks/useNotes.js +16 -0
- package/lib/commonjs/modules/notes/screens/NotesScreen.js +1287 -0
- package/lib/commonjs/modules/notes/services/notesService.js +65 -0
- package/lib/commonjs/modules/noticeboard/hooks/useNoticeboard.js +16 -0
- package/lib/commonjs/modules/noticeboard/screens/NoticeBoardScreen.js +381 -0
- package/lib/commonjs/modules/noticeboard/services/noticeboardService.js +16 -0
- package/lib/commonjs/modules/notification/hooks/useNotifications.js +16 -0
- package/lib/commonjs/modules/notification/screens/NotificationScreen.js +186 -0
- package/lib/commonjs/modules/notification/services/notificationService.js +16 -0
- package/lib/commonjs/modules/promoteStudent/hooks/usePromoteStudent.js +16 -0
- package/lib/commonjs/modules/promoteStudent/screens/PromoteStudentScreen.js +644 -0
- package/lib/commonjs/modules/promoteStudent/services/promoteStudentService.js +36 -0
- package/lib/commonjs/modules/timetable/hooks/useTimeTable.js +14 -0
- package/lib/commonjs/modules/timetable/screens/TimeTableScreen.js +258 -0
- package/lib/commonjs/modules/timetable/services/timetableService.js +16 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/shared/empty-states/EmptyState.js +45 -0
- package/lib/commonjs/shared/empty-states/ErrorState.js +45 -0
- package/lib/commonjs/shared/loaders/LoadingState.js +25 -0
- package/lib/commonjs/shared/theme/theme.js +22 -0
- package/lib/module/core/api/apiClient.js +32 -0
- package/lib/module/core/api/endpoints.js +135 -0
- package/lib/module/core/api/interceptor.js +60 -0
- package/lib/module/core/auth/authContext.js +23 -0
- package/lib/module/core/auth/authService.js +8 -0
- package/lib/module/core/hooks/useApiQuery.js +21 -0
- package/lib/module/core/provider/ERPProvider.js +56 -0
- package/lib/module/core/provider/types.js +3 -0
- package/lib/module/core/provider/useERP.js +12 -0
- package/lib/module/core/types/api.js +1 -0
- package/lib/module/index.js +17 -0
- package/lib/module/modules/assignment/hooks/useAssignmentList.js +12 -0
- package/lib/module/modules/assignment/hooks/useHomeworkDetails.js +12 -0
- package/lib/module/modules/assignment/hooks/useHomeworkSubmissions.js +12 -0
- package/lib/module/modules/assignment/screens/AssignmentScreen.js +2609 -0
- package/lib/module/modules/assignment/services/assignmentService.js +62 -0
- package/lib/module/modules/attendance/hooks/useAttendance.js +12 -0
- package/lib/module/modules/attendance/screens/AttendanceScreen.js +860 -0
- package/lib/module/modules/attendance/services/attendanceService.js +23 -0
- package/lib/module/modules/leaveRequest/hooks/useLeaveRequests.js +12 -0
- package/lib/module/modules/leaveRequest/screens/LeaveRequestScreen.js +985 -0
- package/lib/module/modules/leaveRequest/services/leaveRequestService.js +35 -0
- package/lib/module/modules/marks/hooks/useMarks.js +10 -0
- package/lib/module/modules/marks/screens/MarksScreen.js +1615 -0
- package/lib/module/modules/marks/services/marksService.js +55 -0
- package/lib/module/modules/myAttendance/hooks/useMyAttendance.js +12 -0
- package/lib/module/modules/myAttendance/screens/MyAttendanceScreen.js +351 -0
- package/lib/module/modules/myAttendance/services/myAttendanceService.js +7 -0
- package/lib/module/modules/notes/hooks/useNotes.js +12 -0
- package/lib/module/modules/notes/screens/NotesScreen.js +1281 -0
- package/lib/module/modules/notes/services/notesService.js +54 -0
- package/lib/module/modules/noticeboard/hooks/useNoticeboard.js +12 -0
- package/lib/module/modules/noticeboard/screens/NoticeBoardScreen.js +375 -0
- package/lib/module/modules/noticeboard/services/noticeboardService.js +12 -0
- package/lib/module/modules/notification/hooks/useNotifications.js +12 -0
- package/lib/module/modules/notification/screens/NotificationScreen.js +180 -0
- package/lib/module/modules/notification/services/notificationService.js +12 -0
- package/lib/module/modules/promoteStudent/hooks/usePromoteStudent.js +12 -0
- package/lib/module/modules/promoteStudent/screens/PromoteStudentScreen.js +638 -0
- package/lib/module/modules/promoteStudent/services/promoteStudentService.js +27 -0
- package/lib/module/modules/timetable/hooks/useTimeTable.js +10 -0
- package/lib/module/modules/timetable/screens/TimeTableScreen.js +252 -0
- package/lib/module/modules/timetable/services/timetableService.js +11 -0
- package/lib/module/package.json +1 -0
- package/lib/module/shared/empty-states/EmptyState.js +40 -0
- package/lib/module/shared/empty-states/ErrorState.js +40 -0
- package/lib/module/shared/loaders/LoadingState.js +20 -0
- package/lib/module/shared/theme/theme.js +18 -0
- package/lib/typescript/core/api/apiClient.d.ts +14 -0
- package/lib/typescript/core/api/endpoints.d.ts +164 -0
- package/lib/typescript/core/api/interceptor.d.ts +4 -0
- package/lib/typescript/core/auth/authContext.d.ts +11 -0
- package/lib/typescript/core/auth/authService.d.ts +9 -0
- package/lib/typescript/core/hooks/useApiQuery.d.ts +7 -0
- package/lib/typescript/core/provider/ERPProvider.d.ts +14 -0
- package/lib/typescript/core/provider/types.d.ts +34 -0
- package/lib/typescript/core/provider/useERP.d.ts +3 -0
- package/lib/typescript/core/types/api.d.ts +11 -0
- package/lib/typescript/index.d.ts +18 -0
- package/lib/typescript/modules/assignment/hooks/useAssignmentList.d.ts +3 -0
- package/lib/typescript/modules/assignment/hooks/useHomeworkDetails.d.ts +4 -0
- package/lib/typescript/modules/assignment/hooks/useHomeworkSubmissions.d.ts +4 -0
- package/lib/typescript/modules/assignment/screens/AssignmentScreen.d.ts +9 -0
- package/lib/typescript/modules/assignment/services/assignmentService.d.ts +89 -0
- package/lib/typescript/modules/attendance/hooks/useAttendance.d.ts +3 -0
- package/lib/typescript/modules/attendance/screens/AttendanceScreen.d.ts +5 -0
- package/lib/typescript/modules/attendance/services/attendanceService.d.ts +33 -0
- package/lib/typescript/modules/leaveRequest/hooks/useLeaveRequests.d.ts +3 -0
- package/lib/typescript/modules/leaveRequest/screens/LeaveRequestScreen.d.ts +5 -0
- package/lib/typescript/modules/leaveRequest/services/leaveRequestService.d.ts +39 -0
- package/lib/typescript/modules/marks/hooks/useMarks.d.ts +2 -0
- package/lib/typescript/modules/marks/screens/MarksScreen.d.ts +6 -0
- package/lib/typescript/modules/marks/services/marksService.d.ts +150 -0
- package/lib/typescript/modules/myAttendance/hooks/useMyAttendance.d.ts +3 -0
- package/lib/typescript/modules/myAttendance/screens/MyAttendanceScreen.d.ts +5 -0
- package/lib/typescript/modules/myAttendance/services/myAttendanceService.d.ts +10 -0
- package/lib/typescript/modules/notes/hooks/useNotes.d.ts +3 -0
- package/lib/typescript/modules/notes/screens/NotesScreen.d.ts +8 -0
- package/lib/typescript/modules/notes/services/notesService.d.ts +58 -0
- package/lib/typescript/modules/noticeboard/hooks/useNoticeboard.d.ts +3 -0
- package/lib/typescript/modules/noticeboard/screens/NoticeBoardScreen.d.ts +5 -0
- package/lib/typescript/modules/noticeboard/services/noticeboardService.d.ts +17 -0
- package/lib/typescript/modules/notification/hooks/useNotifications.d.ts +3 -0
- package/lib/typescript/modules/notification/screens/NotificationScreen.d.ts +5 -0
- package/lib/typescript/modules/notification/services/notificationService.d.ts +8 -0
- package/lib/typescript/modules/promoteStudent/hooks/usePromoteStudent.d.ts +3 -0
- package/lib/typescript/modules/promoteStudent/screens/PromoteStudentScreen.d.ts +5 -0
- package/lib/typescript/modules/promoteStudent/services/promoteStudentService.d.ts +40 -0
- package/lib/typescript/modules/timetable/hooks/useTimeTable.d.ts +3 -0
- package/lib/typescript/modules/timetable/screens/TimeTableScreen.d.ts +5 -0
- package/lib/typescript/modules/timetable/services/timetableService.d.ts +14 -0
- package/lib/typescript/shared/empty-states/EmptyState.d.ts +6 -0
- package/lib/typescript/shared/empty-states/ErrorState.d.ts +6 -0
- package/lib/typescript/shared/loaders/LoadingState.d.ts +3 -0
- package/lib/typescript/shared/theme/theme.d.ts +17 -0
- package/package.json +89 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { ERPProvider } from './core/provider/ERPProvider';
|
|
2
|
+
export { useERP } from './core/provider/useERP';
|
|
3
|
+
export type { ERPProviderProps } from './core/provider/types';
|
|
4
|
+
export type { ApiError, ApiResult } from './core/types/api';
|
|
5
|
+
export { LoadingState } from './shared/loaders/LoadingState';
|
|
6
|
+
export { EmptyState } from './shared/empty-states/EmptyState';
|
|
7
|
+
export { ErrorState } from './shared/empty-states/ErrorState';
|
|
8
|
+
export { AssignmentScreen } from './modules/assignment/screens/AssignmentScreen';
|
|
9
|
+
export { AttendanceScreen } from './modules/attendance/screens/AttendanceScreen';
|
|
10
|
+
export { LeaveRequestScreen } from './modules/leaveRequest/screens/LeaveRequestScreen';
|
|
11
|
+
export { MarksScreen } from './modules/marks/screens/MarksScreen';
|
|
12
|
+
export { MyAttendanceScreen } from './modules/myAttendance/screens/MyAttendanceScreen';
|
|
13
|
+
export { NotesScreen } from './modules/notes/screens/NotesScreen';
|
|
14
|
+
export { NoticeBoardScreen } from './modules/noticeboard/screens/NoticeBoardScreen';
|
|
15
|
+
export { NotificationScreen } from './modules/notification/screens/NotificationScreen';
|
|
16
|
+
export { PromoteStudentScreen } from './modules/promoteStudent/screens/PromoteStudentScreen';
|
|
17
|
+
export { TimeTableScreen } from './modules/timetable/screens/TimeTableScreen';
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { AssignmentListParams } from '../services/assignmentService';
|
|
2
|
+
export declare function useAssignmentList(params: AssignmentListParams): import("@tanstack/react-query/build/legacy/_tsup-dts-rollup").UseQueryResult<NoInfer<TData>, Error>;
|
|
3
|
+
//# sourceMappingURL=useAssignmentList.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { AssignmentListParams } from '../services/assignmentService';
|
|
3
|
+
type AssignmentScreenPropsInternal = AssignmentListParams & {
|
|
4
|
+
sessionId?: string | number;
|
|
5
|
+
};
|
|
6
|
+
export type AssignmentScreenProps = AssignmentScreenPropsInternal;
|
|
7
|
+
export declare function AssignmentScreen(props: AssignmentScreenProps): React.JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=AssignmentScreen.d.ts.map
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import type { AxiosInstance } from 'axios';
|
|
2
|
+
import type { ApiResult } from '../../../core/types/api';
|
|
3
|
+
export type AssignmentListParams = {
|
|
4
|
+
page?: number;
|
|
5
|
+
perPage?: number;
|
|
6
|
+
classId?: string | number;
|
|
7
|
+
sectionId?: string | number;
|
|
8
|
+
subjectId?: string | number;
|
|
9
|
+
};
|
|
10
|
+
export declare function fetchAssignmentList(api: AxiosInstance, params: AssignmentListParams): Promise<ApiResult<unknown>>;
|
|
11
|
+
export type DropdownItem = {
|
|
12
|
+
label: string;
|
|
13
|
+
value: string | number;
|
|
14
|
+
};
|
|
15
|
+
export type HomeworkItem = {
|
|
16
|
+
id?: string | number;
|
|
17
|
+
title?: string;
|
|
18
|
+
description?: string;
|
|
19
|
+
homew_date?: string;
|
|
20
|
+
submission_date?: string;
|
|
21
|
+
status?: string;
|
|
22
|
+
class_name?: string;
|
|
23
|
+
section_name?: string;
|
|
24
|
+
subject_name?: string;
|
|
25
|
+
total_submission?: string | number;
|
|
26
|
+
[key: string]: unknown;
|
|
27
|
+
};
|
|
28
|
+
export declare function fetchTeacherClasses(api: AxiosInstance): Promise<ApiResult<DropdownItem[]>>;
|
|
29
|
+
export declare function fetchTeacherSections(api: AxiosInstance, args: {
|
|
30
|
+
classId: string | number;
|
|
31
|
+
}): Promise<ApiResult<DropdownItem[]>>;
|
|
32
|
+
export declare function fetchTeacherSubjectsByClass(api: AxiosInstance, args: {
|
|
33
|
+
classId: string | number;
|
|
34
|
+
sessionId: string | number;
|
|
35
|
+
}): Promise<ApiResult<DropdownItem[]>>;
|
|
36
|
+
export type CreateAssignmentPayload = {
|
|
37
|
+
title: string;
|
|
38
|
+
description: string;
|
|
39
|
+
class_id: string | number;
|
|
40
|
+
section_id: string | number;
|
|
41
|
+
sub_id: string | number;
|
|
42
|
+
homew_date: string;
|
|
43
|
+
submission_date: string;
|
|
44
|
+
status?: 'publish' | 'unpublish';
|
|
45
|
+
file?: string;
|
|
46
|
+
};
|
|
47
|
+
export declare function createAssignment(api: AxiosInstance, payload: CreateAssignmentPayload): Promise<ApiResult<unknown>>;
|
|
48
|
+
export type UploadFileInput = {
|
|
49
|
+
uri: string;
|
|
50
|
+
name: string;
|
|
51
|
+
type: string;
|
|
52
|
+
};
|
|
53
|
+
export declare function uploadAssignmentFile(api: AxiosInstance, file: UploadFileInput): Promise<ApiResult<string>>;
|
|
54
|
+
export type HomeworkSubmissionItem = {
|
|
55
|
+
id?: string | number;
|
|
56
|
+
student_name?: string;
|
|
57
|
+
student_id?: string | number;
|
|
58
|
+
submission_date?: string;
|
|
59
|
+
file?: string;
|
|
60
|
+
marks?: string | number;
|
|
61
|
+
remarks?: string;
|
|
62
|
+
[key: string]: unknown;
|
|
63
|
+
};
|
|
64
|
+
export declare function fetchHomeworkSubmissions(api: AxiosInstance, args: {
|
|
65
|
+
homeworkId: string | number;
|
|
66
|
+
}): Promise<ApiResult<HomeworkSubmissionItem[]>>;
|
|
67
|
+
export type GiveMarksItem = {
|
|
68
|
+
id: string | number;
|
|
69
|
+
number?: string | number;
|
|
70
|
+
remark?: string;
|
|
71
|
+
};
|
|
72
|
+
export declare function giveMarksToHomework(api: AxiosInstance, items: GiveMarksItem[]): Promise<ApiResult<unknown>>;
|
|
73
|
+
export declare function fetchHomeworkDetails(api: AxiosInstance, args: {
|
|
74
|
+
homeworkId: string | number;
|
|
75
|
+
}): Promise<ApiResult<HomeworkItem>>;
|
|
76
|
+
export type UpdateAssignmentPayload = {
|
|
77
|
+
id: string | number;
|
|
78
|
+
title: string;
|
|
79
|
+
description: string;
|
|
80
|
+
class_id: string | number;
|
|
81
|
+
section_id: string | number;
|
|
82
|
+
sub_id: string | number;
|
|
83
|
+
homew_date: string;
|
|
84
|
+
submission_date: string;
|
|
85
|
+
status?: 'publish' | 'unpublish';
|
|
86
|
+
file?: string;
|
|
87
|
+
};
|
|
88
|
+
export declare function updateAssignment(api: AxiosInstance, payload: UpdateAssignmentPayload): Promise<ApiResult<unknown>>;
|
|
89
|
+
//# sourceMappingURL=assignmentService.d.ts.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { AttendanceStudentListParams } from '../services/attendanceService';
|
|
2
|
+
export declare function useAttendanceStudentList(params?: AttendanceStudentListParams): import("@tanstack/react-query/build/legacy/_tsup-dts-rollup").UseQueryResult<NoInfer<TData>, Error>;
|
|
3
|
+
//# sourceMappingURL=useAttendance.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { AttendanceStudentListParams } from '../services/attendanceService';
|
|
3
|
+
export type AttendanceScreenProps = Partial<AttendanceStudentListParams>;
|
|
4
|
+
export declare function AttendanceScreen(props: AttendanceScreenProps): React.JSX.Element;
|
|
5
|
+
//# sourceMappingURL=AttendanceScreen.d.ts.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { AxiosInstance } from 'axios';
|
|
2
|
+
import type { ApiResult } from '../../../core/types/api';
|
|
3
|
+
export type DropdownItem = {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string | number;
|
|
6
|
+
};
|
|
7
|
+
export type AttendanceStudentListParams = {
|
|
8
|
+
classId: string | number;
|
|
9
|
+
sectionId: string | number;
|
|
10
|
+
sessionId: string | number;
|
|
11
|
+
date?: string;
|
|
12
|
+
};
|
|
13
|
+
export type AttendanceStudent = {
|
|
14
|
+
id?: string | number;
|
|
15
|
+
roll_no?: string;
|
|
16
|
+
full_name?: string;
|
|
17
|
+
attendence_type_id?: string | number | null;
|
|
18
|
+
[key: string]: unknown;
|
|
19
|
+
};
|
|
20
|
+
export type AttendanceSubmitPayload = {
|
|
21
|
+
attendanceData: AttendanceStudent[];
|
|
22
|
+
attendanceDate: string;
|
|
23
|
+
class_id: string | number;
|
|
24
|
+
section_id: string | number;
|
|
25
|
+
};
|
|
26
|
+
export declare function fetchAttendanceStudents(api: AxiosInstance, params: AttendanceStudentListParams): Promise<ApiResult<unknown>>;
|
|
27
|
+
export declare function fetchTeacherClasses(api: AxiosInstance): Promise<ApiResult<DropdownItem[]>>;
|
|
28
|
+
export declare function fetchTeacherSections(api: AxiosInstance, args: {
|
|
29
|
+
classId: string | number;
|
|
30
|
+
}): Promise<ApiResult<DropdownItem[]>>;
|
|
31
|
+
export declare function submitAttendance(api: AxiosInstance, payload: AttendanceSubmitPayload): Promise<ApiResult<unknown>>;
|
|
32
|
+
export declare function notifyAttendance(api: AxiosInstance, payload: AttendanceSubmitPayload): Promise<ApiResult<unknown>>;
|
|
33
|
+
//# sourceMappingURL=attendanceService.d.ts.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { LeaveRequestListParams } from '../services/leaveRequestService';
|
|
2
|
+
export declare function useLeaveRequests(params: LeaveRequestListParams): import("@tanstack/react-query/build/legacy/_tsup-dts-rollup").UseQueryResult<NoInfer<TData>, Error>;
|
|
3
|
+
//# sourceMappingURL=useLeaveRequests.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { LeaveRequestListParams } from '../services/leaveRequestService';
|
|
3
|
+
export type LeaveRequestScreenProps = LeaveRequestListParams;
|
|
4
|
+
export declare function LeaveRequestScreen(props: LeaveRequestScreenProps): React.JSX.Element;
|
|
5
|
+
//# sourceMappingURL=LeaveRequestScreen.d.ts.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { AxiosInstance } from 'axios';
|
|
2
|
+
import type { ApiResult } from '../../../core/types/api';
|
|
3
|
+
export type LeaveRequestListParams = {
|
|
4
|
+
page?: number;
|
|
5
|
+
perPage?: number;
|
|
6
|
+
};
|
|
7
|
+
export type LeaveRequestItem = {
|
|
8
|
+
id?: string | number;
|
|
9
|
+
employee_remark?: string;
|
|
10
|
+
type?: string;
|
|
11
|
+
leave_from?: string;
|
|
12
|
+
leave_to?: string;
|
|
13
|
+
status?: string;
|
|
14
|
+
[key: string]: unknown;
|
|
15
|
+
};
|
|
16
|
+
export type LeaveTypeItem = {
|
|
17
|
+
id?: string | number;
|
|
18
|
+
type?: string;
|
|
19
|
+
label?: string;
|
|
20
|
+
value?: string | number;
|
|
21
|
+
[key: string]: unknown;
|
|
22
|
+
};
|
|
23
|
+
export type UploadFileInput = {
|
|
24
|
+
uri: string;
|
|
25
|
+
name: string;
|
|
26
|
+
type: string;
|
|
27
|
+
};
|
|
28
|
+
export type ApplyLeavePayload = {
|
|
29
|
+
reason: string;
|
|
30
|
+
leave_type: string | number;
|
|
31
|
+
from_date: string;
|
|
32
|
+
to_date: string;
|
|
33
|
+
file?: string;
|
|
34
|
+
};
|
|
35
|
+
export declare function fetchLeaveRequests(api: AxiosInstance, params: LeaveRequestListParams): Promise<ApiResult<unknown>>;
|
|
36
|
+
export declare function fetchLeaveTypes(api: AxiosInstance): Promise<ApiResult<LeaveTypeItem[]>>;
|
|
37
|
+
export declare function uploadLeaveFile(api: AxiosInstance, file: UploadFileInput): Promise<ApiResult<string>>;
|
|
38
|
+
export declare function applyLeave(api: AxiosInstance, payload: ApplyLeavePayload): Promise<ApiResult<unknown>>;
|
|
39
|
+
//# sourceMappingURL=leaveRequestService.d.ts.map
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import type { AxiosInstance } from 'axios';
|
|
2
|
+
import type { ApiResult } from '../../../core/types/api';
|
|
3
|
+
export type SelectItem = {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string | number;
|
|
6
|
+
parent?: string | number;
|
|
7
|
+
[key: string]: unknown;
|
|
8
|
+
};
|
|
9
|
+
export type MarksFilters = {
|
|
10
|
+
sessionId: string | number;
|
|
11
|
+
classId: string | number;
|
|
12
|
+
sectionId: string | number;
|
|
13
|
+
examId: string | number;
|
|
14
|
+
};
|
|
15
|
+
export type ScholasticStudent = {
|
|
16
|
+
id: string | number;
|
|
17
|
+
firstname?: string;
|
|
18
|
+
lastname?: string;
|
|
19
|
+
roll_no?: string;
|
|
20
|
+
main_subject_marks?: string;
|
|
21
|
+
practical_subject_marks?: string;
|
|
22
|
+
assement_marks?: Array<{
|
|
23
|
+
assement_id?: string | number;
|
|
24
|
+
marks?: string;
|
|
25
|
+
status?: string;
|
|
26
|
+
is_absent?: boolean;
|
|
27
|
+
}>;
|
|
28
|
+
[key: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
export type ExamAssessmentDetail = {
|
|
31
|
+
id?: string | number;
|
|
32
|
+
title?: string;
|
|
33
|
+
max_marks?: string | number;
|
|
34
|
+
fk_assesment_id?: string | number;
|
|
35
|
+
assesment_type_id?: string | number;
|
|
36
|
+
[key: string]: unknown;
|
|
37
|
+
};
|
|
38
|
+
export type ExamTemplateDetails = {
|
|
39
|
+
assessment_type?: string;
|
|
40
|
+
minor_sub_marks_type?: string;
|
|
41
|
+
[key: string]: unknown;
|
|
42
|
+
};
|
|
43
|
+
export type ExamEntryDetails = {
|
|
44
|
+
id?: string | number;
|
|
45
|
+
subject_type?: string;
|
|
46
|
+
assessment_type?: string;
|
|
47
|
+
Isassessment?: string | number;
|
|
48
|
+
is_theory?: string;
|
|
49
|
+
is_practical?: string;
|
|
50
|
+
full_marks?: string | number;
|
|
51
|
+
practical_full_marks?: string | number;
|
|
52
|
+
assesment_type?: ExamAssessmentDetail[];
|
|
53
|
+
template_details?: ExamTemplateDetails;
|
|
54
|
+
[key: string]: unknown;
|
|
55
|
+
};
|
|
56
|
+
export type ScholasticEntryResponse = ApiResult<{
|
|
57
|
+
data?: ScholasticStudent[];
|
|
58
|
+
exam_details?: ExamEntryDetails[];
|
|
59
|
+
exam_grade?: Array<{
|
|
60
|
+
mark_to?: string | number;
|
|
61
|
+
label?: string;
|
|
62
|
+
value?: string | number;
|
|
63
|
+
}>;
|
|
64
|
+
} & Record<string, unknown>>;
|
|
65
|
+
export type CoScholasticStudent = {
|
|
66
|
+
id: string | number;
|
|
67
|
+
firstname?: string;
|
|
68
|
+
lastname?: string;
|
|
69
|
+
roll_no?: string;
|
|
70
|
+
marks_data?: Array<{
|
|
71
|
+
fk_co_scholasticarea_id?: string | number;
|
|
72
|
+
marks_grade_id?: string | number;
|
|
73
|
+
}>;
|
|
74
|
+
[key: string]: unknown;
|
|
75
|
+
};
|
|
76
|
+
export type CoScholasticArea = {
|
|
77
|
+
id?: string | number;
|
|
78
|
+
skill?: string;
|
|
79
|
+
[key: string]: unknown;
|
|
80
|
+
};
|
|
81
|
+
export type CoScholasticResponse = ApiResult<{
|
|
82
|
+
data?: CoScholasticStudent[];
|
|
83
|
+
exam_details?: CoScholasticArea[];
|
|
84
|
+
} & Record<string, unknown>>;
|
|
85
|
+
export type SubmitExamMarksPayload = {
|
|
86
|
+
exam_id: string | number;
|
|
87
|
+
subject_id: string | number;
|
|
88
|
+
class_id: string | number;
|
|
89
|
+
section_id: string | number;
|
|
90
|
+
exam_schedule_id?: string | number;
|
|
91
|
+
Isassessment?: string | number;
|
|
92
|
+
assesment_type_id?: string | number;
|
|
93
|
+
assessment_type?: string;
|
|
94
|
+
isFinalExam: boolean;
|
|
95
|
+
data: Array<Record<string, unknown>>;
|
|
96
|
+
};
|
|
97
|
+
export type SubmitCoScholasticPayload = {
|
|
98
|
+
formData: Array<Record<string, unknown>>;
|
|
99
|
+
examdetails: Record<string, unknown>;
|
|
100
|
+
};
|
|
101
|
+
export type SubmitExamRemarkPayload = {
|
|
102
|
+
studentId: string | number;
|
|
103
|
+
examId: string | number;
|
|
104
|
+
exam_remarks: string;
|
|
105
|
+
metting_date_1?: string;
|
|
106
|
+
attended_1?: string;
|
|
107
|
+
metting_date_2?: string;
|
|
108
|
+
attended_2?: string;
|
|
109
|
+
metting_date_3?: string;
|
|
110
|
+
attended_3?: string;
|
|
111
|
+
working_days?: string;
|
|
112
|
+
days_present?: string;
|
|
113
|
+
};
|
|
114
|
+
export declare function fetchCoScholasticGrades(api: AxiosInstance): Promise<ApiResult<SelectItem[]>>;
|
|
115
|
+
export declare function fetchMarksClasses(api: AxiosInstance): Promise<ApiResult<SelectItem[]>>;
|
|
116
|
+
export declare function fetchClassTeacherClasses(api: AxiosInstance): Promise<ApiResult<SelectItem[]>>;
|
|
117
|
+
export declare function fetchMarksSections(api: AxiosInstance, args: {
|
|
118
|
+
classId: string | number;
|
|
119
|
+
}): Promise<ApiResult<SelectItem[]>>;
|
|
120
|
+
export declare function fetchExamDropdown(api: AxiosInstance, args: {
|
|
121
|
+
sessionId: string | number;
|
|
122
|
+
classId: string | number;
|
|
123
|
+
}): Promise<ApiResult<SelectItem[]>>;
|
|
124
|
+
export declare function fetchTeacherSubjectsForExam(api: AxiosInstance, args: MarksFilters): Promise<ApiResult<SelectItem[]>>;
|
|
125
|
+
export declare function fetchCoScholasticCategories(api: AxiosInstance, args: {
|
|
126
|
+
sessionId: string | number;
|
|
127
|
+
classId: string | number;
|
|
128
|
+
examId: string | number;
|
|
129
|
+
}): Promise<ApiResult<SelectItem[]>>;
|
|
130
|
+
export declare function fetchScholasticEntry(api: AxiosInstance, args: {
|
|
131
|
+
classId: string | number;
|
|
132
|
+
examId: string | number;
|
|
133
|
+
sectionId: string | number;
|
|
134
|
+
subjectId: string | number;
|
|
135
|
+
}): Promise<ScholasticEntryResponse>;
|
|
136
|
+
export declare function submitExamMarks(api: AxiosInstance, payload: SubmitExamMarksPayload): Promise<ApiResult<unknown>>;
|
|
137
|
+
export declare function fetchCoScholasticEntry(api: AxiosInstance, args: {
|
|
138
|
+
classId: string | number;
|
|
139
|
+
examId: string | number;
|
|
140
|
+
sectionId: string | number;
|
|
141
|
+
categoryId: string | number;
|
|
142
|
+
}): Promise<CoScholasticResponse>;
|
|
143
|
+
export declare function submitCoScholasticMarks(api: AxiosInstance, payload: SubmitCoScholasticPayload): Promise<ApiResult<unknown>>;
|
|
144
|
+
export declare function fetchStudentRemarks(api: AxiosInstance, args: {
|
|
145
|
+
classId: string | number;
|
|
146
|
+
examId: string | number;
|
|
147
|
+
sectionId: string | number;
|
|
148
|
+
}): Promise<ApiResult<any[]>>;
|
|
149
|
+
export declare function submitExamRemark(api: AxiosInstance, payload: SubmitExamRemarkPayload): Promise<ApiResult<unknown>>;
|
|
150
|
+
//# sourceMappingURL=marksService.d.ts.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { MyAttendanceReportParams } from '../services/myAttendanceService';
|
|
2
|
+
export declare function useMyAttendanceReport(params?: MyAttendanceReportParams): import("@tanstack/react-query/build/legacy/_tsup-dts-rollup").UseQueryResult<NoInfer<TData>, Error>;
|
|
3
|
+
//# sourceMappingURL=useMyAttendance.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { MyAttendanceReportParams } from '../services/myAttendanceService';
|
|
3
|
+
export type MyAttendanceScreenProps = Partial<MyAttendanceReportParams>;
|
|
4
|
+
export declare function MyAttendanceScreen(props: MyAttendanceScreenProps): React.JSX.Element;
|
|
5
|
+
//# sourceMappingURL=MyAttendanceScreen.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AxiosInstance } from 'axios';
|
|
2
|
+
import type { ApiResult } from '../../../core/types/api';
|
|
3
|
+
export type MyAttendanceReportParams = {
|
|
4
|
+
staffId: string | number;
|
|
5
|
+
sessionId: string | number;
|
|
6
|
+
month: string | number;
|
|
7
|
+
year: string | number;
|
|
8
|
+
};
|
|
9
|
+
export declare function fetchMyAttendanceReport(api: AxiosInstance, params: MyAttendanceReportParams): Promise<ApiResult<unknown>>;
|
|
10
|
+
//# sourceMappingURL=myAttendanceService.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type NotesListParams } from '../services/notesService';
|
|
3
|
+
type NotesScreenProps = NotesListParams & {
|
|
4
|
+
sessionId?: string | number;
|
|
5
|
+
};
|
|
6
|
+
export declare function NotesScreen(props: NotesScreenProps): React.JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=NotesScreen.d.ts.map
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { AxiosInstance } from 'axios';
|
|
2
|
+
import type { ApiResult } from '../../../core/types/api';
|
|
3
|
+
export type DropdownItem = {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string | number;
|
|
6
|
+
[key: string]: unknown;
|
|
7
|
+
};
|
|
8
|
+
export type NoteItem = {
|
|
9
|
+
id?: string | number;
|
|
10
|
+
title?: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
class_id?: string | number;
|
|
13
|
+
section_id?: string | number;
|
|
14
|
+
subject_id?: string | number;
|
|
15
|
+
file?: string;
|
|
16
|
+
status?: string;
|
|
17
|
+
created_at?: string;
|
|
18
|
+
[key: string]: unknown;
|
|
19
|
+
};
|
|
20
|
+
export type NotesListParams = {
|
|
21
|
+
page?: number;
|
|
22
|
+
perPage?: number;
|
|
23
|
+
classId?: string | number;
|
|
24
|
+
sectionId?: string | number;
|
|
25
|
+
subjectId?: string | number;
|
|
26
|
+
};
|
|
27
|
+
export declare function fetchNotesList(api: AxiosInstance, params: NotesListParams): Promise<ApiResult<NoteItem[]>>;
|
|
28
|
+
export declare function fetchNotesClasses(api: AxiosInstance): Promise<ApiResult<DropdownItem[]>>;
|
|
29
|
+
export declare function fetchNotesSections(api: AxiosInstance, args: {
|
|
30
|
+
classId: string | number;
|
|
31
|
+
}): Promise<ApiResult<DropdownItem[]>>;
|
|
32
|
+
export declare function fetchNotesSubjects(api: AxiosInstance, args: {
|
|
33
|
+
classId: string | number;
|
|
34
|
+
sessionId: string | number;
|
|
35
|
+
}): Promise<ApiResult<DropdownItem[]>>;
|
|
36
|
+
export declare function fetchNoteDetails(api: AxiosInstance, args: {
|
|
37
|
+
noteId: string | number;
|
|
38
|
+
}): Promise<ApiResult<NoteItem>>;
|
|
39
|
+
export type UploadFileInput = {
|
|
40
|
+
uri: string;
|
|
41
|
+
name: string;
|
|
42
|
+
type: string;
|
|
43
|
+
};
|
|
44
|
+
export declare function uploadNoteFile(api: AxiosInstance, file: UploadFileInput): Promise<ApiResult<string>>;
|
|
45
|
+
export type SaveNotePayload = {
|
|
46
|
+
id?: string | number;
|
|
47
|
+
title: string;
|
|
48
|
+
description: string;
|
|
49
|
+
remark?: string;
|
|
50
|
+
class_id: string | number;
|
|
51
|
+
section_id: string | number;
|
|
52
|
+
sub_id: string | number;
|
|
53
|
+
file?: string;
|
|
54
|
+
status?: string;
|
|
55
|
+
};
|
|
56
|
+
export declare function createNote(api: AxiosInstance, payload: SaveNotePayload): Promise<ApiResult<unknown>>;
|
|
57
|
+
export declare function updateNote(api: AxiosInstance, payload: SaveNotePayload): Promise<ApiResult<unknown>>;
|
|
58
|
+
//# sourceMappingURL=notesService.d.ts.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { NoticeboardListParams } from '../services/noticeboardService';
|
|
2
|
+
export declare function useNoticeboardList(params: NoticeboardListParams): import("@tanstack/react-query/build/legacy/_tsup-dts-rollup").UseQueryResult<NoInfer<TData>, Error>;
|
|
3
|
+
//# sourceMappingURL=useNoticeboard.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type NoticeboardListParams } from '../services/noticeboardService';
|
|
3
|
+
export type NoticeBoardScreenProps = NoticeboardListParams;
|
|
4
|
+
export declare function NoticeBoardScreen(props: NoticeBoardScreenProps): React.JSX.Element;
|
|
5
|
+
//# sourceMappingURL=NoticeBoardScreen.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { AxiosInstance } from 'axios';
|
|
2
|
+
import type { ApiResult } from '../../../core/types/api';
|
|
3
|
+
export type NoticeboardListParams = {
|
|
4
|
+
page?: number;
|
|
5
|
+
perPage?: number;
|
|
6
|
+
};
|
|
7
|
+
export type NoticeItem = {
|
|
8
|
+
id?: string | number;
|
|
9
|
+
title?: string;
|
|
10
|
+
message?: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
date?: string;
|
|
13
|
+
created_at?: string;
|
|
14
|
+
[key: string]: unknown;
|
|
15
|
+
};
|
|
16
|
+
export declare function fetchNoticeboardList(api: AxiosInstance, params: NoticeboardListParams): Promise<ApiResult<NoticeItem[]>>;
|
|
17
|
+
//# sourceMappingURL=noticeboardService.d.ts.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { NotificationListParams } from '../services/notificationService';
|
|
2
|
+
export declare function useNotifications(params: NotificationListParams): import("@tanstack/react-query/build/legacy/_tsup-dts-rollup").UseQueryResult<NoInfer<TData>, Error>;
|
|
3
|
+
//# sourceMappingURL=useNotifications.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { NotificationListParams } from '../services/notificationService';
|
|
3
|
+
export type NotificationScreenProps = NotificationListParams;
|
|
4
|
+
export declare function NotificationScreen(props: NotificationScreenProps): React.JSX.Element;
|
|
5
|
+
//# sourceMappingURL=NotificationScreen.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AxiosInstance } from 'axios';
|
|
2
|
+
import type { ApiResult } from '../../../core/types/api';
|
|
3
|
+
export type NotificationListParams = {
|
|
4
|
+
page?: number;
|
|
5
|
+
perPage?: number;
|
|
6
|
+
};
|
|
7
|
+
export declare function fetchNotificationList(api: AxiosInstance, params: NotificationListParams): Promise<ApiResult<unknown>>;
|
|
8
|
+
//# sourceMappingURL=notificationService.d.ts.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { PromoteStudentSearchParams } from '../services/promoteStudentService';
|
|
2
|
+
export declare function usePromoteStudentSearch(params?: PromoteStudentSearchParams): import("@tanstack/react-query/build/legacy/_tsup-dts-rollup").UseQueryResult<NoInfer<TData>, Error>;
|
|
3
|
+
//# sourceMappingURL=usePromoteStudent.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type PromoteStudentSearchParams } from '../services/promoteStudentService';
|
|
3
|
+
export type PromoteStudentScreenProps = Partial<PromoteStudentSearchParams>;
|
|
4
|
+
export declare function PromoteStudentScreen(props: PromoteStudentScreenProps): React.JSX.Element;
|
|
5
|
+
//# sourceMappingURL=PromoteStudentScreen.d.ts.map
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { AxiosInstance } from 'axios';
|
|
2
|
+
import type { ApiResult } from '../../../core/types/api';
|
|
3
|
+
export type DropdownItem = {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string | number;
|
|
6
|
+
[key: string]: unknown;
|
|
7
|
+
};
|
|
8
|
+
export type PromoteStudentItem = {
|
|
9
|
+
id: string | number;
|
|
10
|
+
firstname?: string;
|
|
11
|
+
lastname?: string;
|
|
12
|
+
roll_no?: string;
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
};
|
|
15
|
+
export type PromoteStudentSearchParams = {
|
|
16
|
+
classId: string | number;
|
|
17
|
+
sectionId: string | number;
|
|
18
|
+
};
|
|
19
|
+
export declare function fetchPromoteStudentSearch(api: AxiosInstance, params: PromoteStudentSearchParams): Promise<ApiResult<unknown>>;
|
|
20
|
+
export declare function fetchPromoteClasses(api: AxiosInstance): Promise<ApiResult<DropdownItem[]>>;
|
|
21
|
+
export declare function fetchPromoteSections(api: AxiosInstance, args: {
|
|
22
|
+
classId: string | number;
|
|
23
|
+
}): Promise<ApiResult<DropdownItem[]>>;
|
|
24
|
+
export declare function fetchPromoteAllSections(api: AxiosInstance, args: {
|
|
25
|
+
classId: string | number;
|
|
26
|
+
}): Promise<ApiResult<DropdownItem[]>>;
|
|
27
|
+
export declare function fetchPromoteSessions(api: AxiosInstance): Promise<ApiResult<DropdownItem[]>>;
|
|
28
|
+
export type SubmitPromotionPayload = {
|
|
29
|
+
session_id: string | number;
|
|
30
|
+
class_id: string | number;
|
|
31
|
+
students: Array<{
|
|
32
|
+
student_id: string | number;
|
|
33
|
+
current_result: string;
|
|
34
|
+
next_session_status: string;
|
|
35
|
+
roll_no?: string;
|
|
36
|
+
section_id?: string | number;
|
|
37
|
+
}>;
|
|
38
|
+
};
|
|
39
|
+
export declare function submitPromotions(api: AxiosInstance, payload: SubmitPromotionPayload): Promise<ApiResult<unknown>>;
|
|
40
|
+
//# sourceMappingURL=promoteStudentService.d.ts.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { TimeTableParams } from '../services/timetableService';
|
|
2
|
+
export declare function useTimeTable(params: TimeTableParams): import("@tanstack/react-query/build/legacy/_tsup-dts-rollup").UseQueryResult<NoInfer<TData>, Error>;
|
|
3
|
+
//# sourceMappingURL=useTimeTable.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type TeacherTimeTableParams, type TimeTableParams } from '../services/timetableService';
|
|
3
|
+
export type TimeTableScreenProps = Partial<TimeTableParams & TeacherTimeTableParams>;
|
|
4
|
+
export declare function TimeTableScreen(props: TimeTableScreenProps): React.JSX.Element;
|
|
5
|
+
//# sourceMappingURL=TimeTableScreen.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { AxiosInstance } from 'axios';
|
|
2
|
+
import type { ApiResult } from '../../../core/types/api';
|
|
3
|
+
export type TimeTableParams = {
|
|
4
|
+
classId: string | number;
|
|
5
|
+
sectionId: string | number;
|
|
6
|
+
sessionId: string | number;
|
|
7
|
+
};
|
|
8
|
+
export type TeacherTimeTableParams = {
|
|
9
|
+
staffId: string | number;
|
|
10
|
+
sessionId: string | number;
|
|
11
|
+
};
|
|
12
|
+
export declare function fetchTimeTable(api: AxiosInstance, params: TimeTableParams): Promise<ApiResult<unknown>>;
|
|
13
|
+
export declare function fetchTeacherTimeTable(api: AxiosInstance, params: TeacherTimeTableParams): Promise<ApiResult<unknown>>;
|
|
14
|
+
//# sourceMappingURL=timetableService.d.ts.map
|