mario-education 2.4.102-beta → 2.4.103-beta

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.
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { ISwitchCounselorModal } from "../utils/type.interface";
3
+ declare const _default: React.ForwardRefExoticComponent<ISwitchCounselorModal & React.RefAttributes<HTMLInputElement>>;
4
+ export default _default;
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ import { IOptions, IStudentCounselorItem } from "../utils/type.interface";
3
+ declare const useSwitchCounselor: () => {
4
+ userList: IStudentCounselorItem[];
5
+ totalItems: number;
6
+ filters: import("mario-core").Filter;
7
+ changeFilters: (updatedFilters: any) => void;
8
+ modal: import("react").MutableRefObject<any>;
9
+ userChoiced: IStudentCounselorItem;
10
+ options: IOptions[];
11
+ setCounselorChangeId: import("react").Dispatch<import("react").SetStateAction<string>>;
12
+ counselorChangeId: string;
13
+ removeData: (counselorId: string, studentId: number) => Promise<void>;
14
+ resetData: () => void;
15
+ choiceUser: (userChoiced: IStudentCounselorItem) => void;
16
+ onDeleteCounselor: (studentId: number) => Promise<void>;
17
+ };
18
+ export default useSwitchCounselor;
@@ -0,0 +1,8 @@
1
+ export declare const INITIAL_USER_CHOICE: {
2
+ id: number;
3
+ emailStudent: string;
4
+ studentName: string;
5
+ assistantId: string;
6
+ emailAssistant: string;
7
+ assistantName: string;
8
+ };
@@ -0,0 +1,53 @@
1
+ export interface IOptions {
2
+ label: string;
3
+ value: string;
4
+ }
5
+ export declare type USER_CHOICE = {
6
+ id: string;
7
+ studentName: string;
8
+ emailStudent: string;
9
+ assistantId: string;
10
+ emailAssistant: string;
11
+ assistantName: string;
12
+ };
13
+ export interface ISwitchAssistantModal {
14
+ header: string;
15
+ removeData: (teacherUserId: string, studentId: number | string) => Promise<void>;
16
+ resetData: () => void;
17
+ userChoiced: IStudentAssistantItem;
18
+ options: IOptions[];
19
+ assistantChangeId: string;
20
+ setAssistantChangeId: (value: any) => void;
21
+ }
22
+ export interface ISwitchCounselorModal {
23
+ header: string;
24
+ removeData: (teacherUserId: string, studentId: number | string) => Promise<void>;
25
+ resetData: () => void;
26
+ userChoiced: IStudentCounselorItem;
27
+ options: IOptions[];
28
+ counselorChangeId: string;
29
+ setCounselorChangeId: (value: any) => void;
30
+ }
31
+ export interface IStudentAssistantItem {
32
+ id: number;
33
+ emailStudent: string;
34
+ studentName: string;
35
+ assistantId?: string;
36
+ emailAssistant?: string;
37
+ assistantName?: string;
38
+ }
39
+ export interface IStudentCounselorItem {
40
+ id: number;
41
+ emailStudent: string;
42
+ studentName: string;
43
+ counselorId?: string;
44
+ emailCounselor?: string;
45
+ counselorName?: string;
46
+ }
47
+ export declare type TypeStudentAssistantData = {
48
+ currentPage: number;
49
+ pageSize: number;
50
+ totalItems: number;
51
+ totalPages: number;
52
+ items: IStudentAssistantItem[];
53
+ };
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const SwitchCounselorList: () => JSX.Element;
3
+ export default SwitchCounselorList;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { ISwitchSecondaryTeacherModal } from "../utils/type.interface";
3
+ declare const _default: React.ForwardRefExoticComponent<ISwitchSecondaryTeacherModal & React.RefAttributes<HTMLInputElement>>;
4
+ export default _default;
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ import { IOptions } from "../utils/type.interface";
3
+ import { IStudentSecondaryTeacherItem } from "../../AssignSecondaryTeacher/utils/type.interface";
4
+ declare const useSwitchSecondaryTeacher: () => {
5
+ userList: IStudentSecondaryTeacherItem[];
6
+ totalItems: number;
7
+ filters: import("mario-core").Filter;
8
+ changeFilters: (updatedFilters: any) => void;
9
+ modal: import("react").MutableRefObject<any>;
10
+ userChoiced: IStudentSecondaryTeacherItem;
11
+ options: IOptions[];
12
+ setSecondaryTeacherChangeId: import("react").Dispatch<import("react").SetStateAction<string>>;
13
+ secondaryTeacherChangeId: string;
14
+ removeData: (secondaryTeacherId: string, studentId: number) => Promise<void>;
15
+ resetData: () => void;
16
+ choiceUser: (userChoiced: IStudentSecondaryTeacherItem) => void;
17
+ onDeleteSecondaryTeacher: (studentId: number) => Promise<void>;
18
+ };
19
+ export default useSwitchSecondaryTeacher;
@@ -0,0 +1,8 @@
1
+ export declare const INITIAL_USER_CHOICE: {
2
+ id: number;
3
+ emailStudent: string;
4
+ studentName: string;
5
+ assistantId: string;
6
+ emailAssistant: string;
7
+ assistantName: string;
8
+ };
@@ -0,0 +1,63 @@
1
+ import { IStudentSecondaryTeacherItem } from "../../AssignSecondaryTeacher/utils/type.interface";
2
+ export interface IOptions {
3
+ label: string;
4
+ value: string;
5
+ }
6
+ export declare type USER_CHOICE = {
7
+ id: string;
8
+ studentName: string;
9
+ emailStudent: string;
10
+ assistantId: string;
11
+ emailAssistant: string;
12
+ assistantName: string;
13
+ };
14
+ export interface ISwitchAssistantModal {
15
+ header: string;
16
+ removeData: (teacherUserId: string, studentId: number | string) => Promise<void>;
17
+ resetData: () => void;
18
+ userChoiced: IStudentAssistantItem;
19
+ options: IOptions[];
20
+ assistantChangeId: string;
21
+ setAssistantChangeId: (value: any) => void;
22
+ }
23
+ export interface ISwitchCounselorModal {
24
+ header: string;
25
+ removeData: (teacherUserId: string, studentId: number | string) => Promise<void>;
26
+ resetData: () => void;
27
+ userChoiced: IStudentCounselorItem;
28
+ options: IOptions[];
29
+ counselorChangeId: string;
30
+ setCounselorChangeId: (value: any) => void;
31
+ }
32
+ export interface ISwitchSecondaryTeacherModal {
33
+ header: string;
34
+ removeData: (teacherUserId: string, studentId: number | string) => Promise<void>;
35
+ resetData: () => void;
36
+ userChoiced: IStudentSecondaryTeacherItem;
37
+ options: IOptions[];
38
+ secondaryTeacherChangeId: string;
39
+ setSecondaryTeacherChangeId: (value: any) => void;
40
+ }
41
+ export interface IStudentAssistantItem {
42
+ id: number;
43
+ emailStudent: string;
44
+ studentName: string;
45
+ assistantId?: string;
46
+ emailAssistant?: string;
47
+ assistantName?: string;
48
+ }
49
+ export interface IStudentCounselorItem {
50
+ id: number;
51
+ emailStudent: string;
52
+ studentName: string;
53
+ counselorId?: string;
54
+ emailCounselor?: string;
55
+ counselorName?: string;
56
+ }
57
+ export declare type TypeStudentAssistantData = {
58
+ currentPage: number;
59
+ pageSize: number;
60
+ totalItems: number;
61
+ totalPages: number;
62
+ items: IStudentAssistantItem[];
63
+ };
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const SwitchSecondaryTeacherList: () => JSX.Element;
3
+ export default SwitchSecondaryTeacherList;
@@ -7,10 +7,16 @@ export declare const getStudentAssistant: (data: IStudentWidthAssistant) => Prom
7
7
  export declare const getStudentWithoutAssistant: (data: IStudentWidthAssistant) => Promise<import("axios").AxiosResponse<TypeStudentWithoutAssistantData>>;
8
8
  export declare const getAssistant: () => Promise<import("axios").AxiosResponse<any>>;
9
9
  export declare const getAssistantByStudentId: (studentId: number) => Promise<import("axios").AxiosResponse<any>>;
10
+ export declare const getCounselorByStudentId: (studentId: number) => Promise<import("axios").AxiosResponse<any>>;
11
+ export declare const getSecondaryTeacherByStudentId: (studentId: number) => Promise<import("axios").AxiosResponse<any>>;
10
12
  export declare const getAssistants: () => Promise<import("axios").AxiosResponse<any>>;
11
13
  export declare const changeAssistantOfStudent: (id: number, assistantUserId: string) => Promise<import("axios").AxiosResponse<any>>;
14
+ export declare const changeCounselorOfStudent: (id: number, counselorId: string) => Promise<import("axios").AxiosResponse<any>>;
15
+ export declare const changeSecondaryTeacherOfStudent: (id: number, secondaryTeacherId: string) => Promise<import("axios").AxiosResponse<any>>;
12
16
  export declare const assignAssistantOfStudent: (studentId: number, teacherId: number, assistantId: number) => Promise<import("axios").AxiosResponse<any>>;
13
17
  export declare const removeAssistantForStudent: (studentId: number) => Promise<import("axios").AxiosResponse<any>>;
18
+ export declare const removeCounselorForStudent: (studentId: number) => Promise<import("axios").AxiosResponse<any>>;
19
+ export declare const removeSecondaryTeacherForStudent: (studentId: number) => Promise<import("axios").AxiosResponse<any>>;
14
20
  export declare const assignCounselorOfStudent: (studentId: number, teacherId: number, counselorId: number) => Promise<import("axios").AxiosResponse<any>>;
15
21
  export declare const getCounselors: () => Promise<import("axios").AxiosResponse<any>>;
16
22
  export declare const getStudentCounselor: (data: IStudentCounselorFilter) => Promise<import("axios").AxiosResponse<TypeStudentCounselorData>>;