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.
- package/dist/MarioFramework.Education/ClientApp/src/containers/SwitchAssistant/components/SwitchAssistantModal.d.ts +4 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/SwitchAssistant/hooks/useSwitchAssistant.d.ts +17 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/SwitchAssistant/utils/constants.d.ts +8 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/SwitchAssistant/utils/type.interface.d.ts +36 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/SwitchAssistant/views/SwitchAssistantList.d.ts +3 -0
- package/dist/MarioFramework.Education/ClientApp/src/services/userService.d.ts +5 -0
- package/dist/MarioFramework.Education/ClientApp/src/utils/serviceType.interface.d.ts +8 -0
- package/dist/index.js +394 -35
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +394 -35
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
|
@@ -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,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,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>>;
|