mario-education 3.0.3-admin → 3.0.5-counselor

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 { IAssignAssistantModal } from "../utils/type.interface";
3
+ declare const _default: React.ForwardRefExoticComponent<IAssignAssistantModal & React.RefAttributes<HTMLInputElement>>;
4
+ export default _default;
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ import { IOptions, IStudentWithoutAssistantItem } from "../utils/type.interface";
3
+ declare const useAssignAssistant: () => {
4
+ userList: IStudentWithoutAssistantItem[];
5
+ totalItems: number;
6
+ filters: import("mario-core").Filter;
7
+ changeFilters: (updatedFilters: any) => void;
8
+ modal: import("react").MutableRefObject<any>;
9
+ userChoiced: IStudentWithoutAssistantItem;
10
+ options: IOptions[];
11
+ changeAssistantId: (id: number) => void;
12
+ assistantChangeId: number;
13
+ handleAssign: () => Promise<void>;
14
+ resetData: () => void;
15
+ choiceUser: (userChoiced: IStudentWithoutAssistantItem) => void;
16
+ isChecked: boolean;
17
+ };
18
+ export default useAssignAssistant;
@@ -0,0 +1,3 @@
1
+ import { IStudentWithoutAssistantItem } from "./type.interface";
2
+ export declare const INITIAL_USER_CHOICE: IStudentWithoutAssistantItem;
3
+ export declare const DEFAULT_DATE = "0001-01-01T00:00:00";
@@ -0,0 +1,45 @@
1
+ export interface IOptions {
2
+ label: string;
3
+ value: number;
4
+ }
5
+ export declare type USER_CHOICE = {
6
+ id: string;
7
+ studentName: string;
8
+ emailStudent: string;
9
+ assistantId: string;
10
+ emailAssistant: string;
11
+ assistantName: string;
12
+ };
13
+ export declare type Assistant = {
14
+ id: string;
15
+ assistantId: number;
16
+ firstName: string;
17
+ lastName: string;
18
+ fullName: string;
19
+ email: string;
20
+ };
21
+ export interface IAssignAssistantModal {
22
+ header: string;
23
+ onAssign: () => Promise<void>;
24
+ resetData: () => void;
25
+ userChoiced: IStudentWithoutAssistantItem;
26
+ options: IOptions[];
27
+ assistantChangeId: number;
28
+ setAssistantChangeId: (value: any) => void;
29
+ isChecked: boolean;
30
+ }
31
+ export interface IStudentWithoutAssistantItem {
32
+ id: number;
33
+ emailStudent: string;
34
+ studentName: string;
35
+ teacherId?: number;
36
+ dateOfBirth: string;
37
+ createdAt: string;
38
+ }
39
+ export declare type TypeStudentWithoutAssistantData = {
40
+ currentPage: number;
41
+ pageSize: number;
42
+ totalItems: number;
43
+ totalPages: number;
44
+ items: IStudentWithoutAssistantItem[];
45
+ };
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const AssignAssistantList: () => JSX.Element;
3
+ export default AssignAssistantList;
@@ -1,7 +1,11 @@
1
+ import { TypeStudentWithoutAssistantData } from "../containers/AssignAssistant/utils/type.interface";
1
2
  import { TypeStudentAssistantData } from "../containers/SwitchAssistant/utils/type.interface";
2
3
  import { IStudentWidthAssistant } from "../utils/serviceType.interface";
3
4
  export declare const getStudentAssistant: (data: IStudentWidthAssistant) => Promise<import("axios").AxiosResponse<TypeStudentAssistantData>>;
5
+ export declare const getStudentWithoutAssistant: (data: IStudentWidthAssistant) => Promise<import("axios").AxiosResponse<TypeStudentWithoutAssistantData>>;
4
6
  export declare const getAssistant: () => Promise<import("axios").AxiosResponse<any>>;
5
7
  export declare const getAssistantByStudentId: (studentId: number) => Promise<import("axios").AxiosResponse<any>>;
8
+ export declare const getAssistants: () => Promise<import("axios").AxiosResponse<any>>;
6
9
  export declare const changeAssistantOfStudent: (id: number, assistantUserId: string) => Promise<import("axios").AxiosResponse<any>>;
10
+ export declare const assignAssistantOfStudent: (studentId: number, teacherId: number, assistantId: number) => Promise<import("axios").AxiosResponse<any>>;
7
11
  export declare const removeAssistantForStudent: (studentId: number) => Promise<import("axios").AxiosResponse<any>>;