mario-education 2.4.2 → 2.4.3-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 { ISwitchAssistantModal } from "../utils/type.interface";
3
+ declare const _default: React.ForwardRefExoticComponent<ISwitchAssistantModal & React.RefAttributes<HTMLInputElement>>;
4
+ export default _default;
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ import { IOptions, IStudentAssistantItem } from "../utils/type.interface";
3
+ declare const useSwitchAssistant: () => {
4
+ userList: IStudentAssistantItem[];
5
+ totalItems: number;
6
+ filters: import("mario-core").Filter;
7
+ changeFilters: (updatedFilters: any) => void;
8
+ modal: import("react").MutableRefObject<any>;
9
+ userChoiced: IStudentAssistantItem;
10
+ options: IOptions[];
11
+ setAssistantChangeId: import("react").Dispatch<import("react").SetStateAction<string>>;
12
+ assistantChangeId: string;
13
+ removeData: (teacherUserId: string, studentId: number) => Promise<void>;
14
+ resetData: () => void;
15
+ choiceUser: (userChoiced: IStudentAssistantItem) => void;
16
+ };
17
+ export default useSwitchAssistant;
@@ -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,36 @@
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 IStudentAssistantItem {
23
+ id: number;
24
+ emailStudent: string;
25
+ studentName: string;
26
+ assistantId?: string;
27
+ emailAssistant?: string;
28
+ assistantName?: string;
29
+ }
30
+ export declare type TypeStudentAssistantData = {
31
+ currentPage: number;
32
+ pageSize: number;
33
+ totalItems: number;
34
+ totalPages: number;
35
+ items: IStudentAssistantItem[];
36
+ };
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const SwitchAssistantList: () => JSX.Element;
3
+ export default SwitchAssistantList;
@@ -0,0 +1,5 @@
1
+ import { TypeStudentAssistantData } from "../containers/SwitchAssistant/utils/type.interface";
2
+ import { IStudentWidthAssistant } from "../utils/serviceType.interface";
3
+ export declare const getStudentAssistant: (data: IStudentWidthAssistant) => Promise<import("axios").AxiosResponse<TypeStudentAssistantData>>;
4
+ export declare const getAssistant: () => Promise<import("axios").AxiosResponse<any>>;
5
+ export declare const changeAssistantOfStudent: (id: number, assistantUserId: string) => Promise<import("axios").AxiosResponse<any>>;
@@ -0,0 +1,8 @@
1
+ export interface IStudentWidthAssistant {
2
+ currentPage?: number;
3
+ name?: string;
4
+ softBy?: string;
5
+ softOrder?: string;
6
+ searchString?: string;
7
+ pageSize?: number;
8
+ }