mario-education 2.4.220-release → 2.4.226-release

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
+ /// <reference types="react" />
2
+ import { IQuestionAlertDetailModel } from "../configs/type";
3
+ declare const QuestionAlertDetailModel: ({ header, onConfirm, questionAlertDetail, onCancel }: IQuestionAlertDetailModel) => JSX.Element;
4
+ export default QuestionAlertDetailModel;
@@ -0,0 +1,16 @@
1
+ export declare enum AlertType {
2
+ OneToOne = 0,
3
+ Conference = 1
4
+ }
5
+ export declare const initQuestionAlert: {
6
+ questionText: string;
7
+ text: string;
8
+ flag: string;
9
+ from: number;
10
+ to: number;
11
+ type: AlertType;
12
+ };
13
+ export declare const alertTypeOptions: {
14
+ value: AlertType;
15
+ label: string;
16
+ }[];
@@ -0,0 +1,20 @@
1
+ import { AlertType } from "./constant";
2
+ export interface IQuestionAlert {
3
+ id?: number;
4
+ questionText: string;
5
+ questionId?: number;
6
+ text: string;
7
+ flag: string;
8
+ from: number;
9
+ to: number;
10
+ type: AlertType;
11
+ }
12
+ export interface IQuestionAlertDetailModel {
13
+ header: string;
14
+ confirmText: string;
15
+ onConfirm: Function;
16
+ questionAlertDetail: IQuestionAlert | null | undefined;
17
+ onCancel: Function;
18
+ edited: boolean;
19
+ setEdited: Function;
20
+ }
@@ -0,0 +1,9 @@
1
+ export declare const schema: import("yup/lib/object").OptionalObjectSchema<{
2
+ questionText: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
3
+ text: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
4
+ flag: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
5
+ }, Record<string, any>, import("yup/lib/object").TypeOfShape<{
6
+ questionText: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
7
+ text: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
8
+ flag: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
9
+ }>>;
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { IQuestionAlert } from "../configs/type";
3
+ declare const useQuestionAlert: () => {
4
+ filters: import("mario-core").Filter;
5
+ changeFilters: (updatedFilters: any) => void;
6
+ getData: () => Promise<void>;
7
+ alerts: IQuestionAlert[];
8
+ model: IQuestionAlert | null | undefined;
9
+ setModel: import("react").Dispatch<import("react").SetStateAction<IQuestionAlert | null | undefined>>;
10
+ createAlert: (model: any) => Promise<void>;
11
+ removeData: (id: number) => Promise<void>;
12
+ updateAlert: (model: any) => Promise<void>;
13
+ };
14
+ export default useQuestionAlert;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const CustomQuestionAlert: () => JSX.Element;
3
+ export default CustomQuestionAlert;
@@ -40,4 +40,5 @@ import AdminTraining from "./containers/AdminTraining/views/AdminTraining";
40
40
  import SurveyDashboard from "./containers/SurveyDashboard/views/SurveyDashboard";
41
41
  import RevertUser from "./containers/UserRevert/views/RevertUser";
42
42
  import FixDataStudent from "./containers/FixData/views/FixDataStudent";
43
- export { ClassList, ConferenceRubricList, ConferenceRubricDetail, SuggestionList, LearningStrategyList, SetupContainer, QuestionBankList, ReflectionFormList, ReflectionContainer, QuestionDetail, SubjectList, LearningSupportCategoryList, BadgeList, GoalExampleList, TutorialScreenContainer, FeedbackList, AssessmentList, QuestionBankContainer, SurveyQuestionContainer, QuestionCategoryList, AssignmentList, AssessmentAssignmentContainer, SessionTemplateContainer, SessionTemplateDetail, SessionTemplateGeneralClassDetail, CustomAlertList, CertificateContainer, CompareTeacher, AssetLog, SessionTemplateList, SessionTemplateGeneralClassList, Dashboard, LoadLanguage, AdminTraining, TemplateContainer, OneRosterContainer, SandboxContainer, TemplateBuilderPage, TemplateStartBuild, SurveyDashboard, RevertUser, FixDataStudent };
43
+ import CustomQuestionAlert from "./containers/CustomAlert/views/CustomQuestionAlert";
44
+ export { ClassList, ConferenceRubricList, ConferenceRubricDetail, SuggestionList, LearningStrategyList, SetupContainer, QuestionBankList, ReflectionFormList, ReflectionContainer, QuestionDetail, SubjectList, LearningSupportCategoryList, BadgeList, GoalExampleList, TutorialScreenContainer, FeedbackList, AssessmentList, QuestionBankContainer, SurveyQuestionContainer, QuestionCategoryList, AssignmentList, AssessmentAssignmentContainer, SessionTemplateContainer, SessionTemplateDetail, SessionTemplateGeneralClassDetail, CustomAlertList, CertificateContainer, CompareTeacher, AssetLog, SessionTemplateList, SessionTemplateGeneralClassList, Dashboard, LoadLanguage, AdminTraining, TemplateContainer, OneRosterContainer, SandboxContainer, TemplateBuilderPage, TemplateStartBuild, SurveyDashboard, RevertUser, FixDataStudent, CustomQuestionAlert };
@@ -0,0 +1,5 @@
1
+ import { IQuestionAlert } from "../containers/CustomAlert/configs/type";
2
+ export declare const get: () => Promise<import("axios").AxiosResponse<any>>;
3
+ export declare const create: (model: IQuestionAlert) => Promise<import("axios").AxiosResponse<any>>;
4
+ export declare const update: (model: IQuestionAlert) => Promise<import("axios").AxiosResponse<any>>;
5
+ export declare const remove: (id: number) => Promise<import("axios").AxiosResponse<any>>;