mario-education 2.4.573-feedback → 2.4.573-wellbeing

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.
@@ -3,7 +3,8 @@ export declare enum TYPE_QUESTION {
3
3
  OneToOne = 1,
4
4
  ClassReflection = 2,
5
5
  Conference = 3,
6
- Survey = 4
6
+ Survey = 4,
7
+ Wellbeing = 5
7
8
  }
8
9
  export declare const userForQuestion: {
9
10
  value: string;
@@ -13,3 +13,7 @@ export interface IQuestionChecked {
13
13
  questionList: any[];
14
14
  categoryId?: any;
15
15
  }
16
+ export interface ISection {
17
+ id: number;
18
+ name: string;
19
+ }
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { IQuestionLabel } from "../configs/type";
2
+ import { IQuestionLabel, ISection } from "../configs/type";
3
3
  declare type Answer = {
4
4
  text: string;
5
5
  isCorrectAnswer: boolean;
@@ -29,6 +29,8 @@ declare type QuestionDetail = {
29
29
  isQuestionIntervention: boolean;
30
30
  userForQuestion?: string;
31
31
  lang: string;
32
+ title?: string;
33
+ wellBeingSectionId?: number | null;
32
34
  };
33
35
  declare const useQuestionDetail: (id?: number | undefined, type?: number | undefined) => {
34
36
  questionDetail: QuestionDetail;
@@ -49,5 +51,10 @@ declare const useQuestionDetail: (id?: number | undefined, type?: number | undef
49
51
  handleValidateForm: (onValidate: Function, setErrors: Function) => Promise<boolean>;
50
52
  activeType: string;
51
53
  setActiveType: import("react").Dispatch<import("react").SetStateAction<string>>;
54
+ sections: ISection[];
55
+ sectionOptions: {
56
+ value: number;
57
+ label: string;
58
+ }[];
52
59
  };
53
60
  export default useQuestionDetail;
@@ -1,4 +1,4 @@
1
- declare const useQuestionList: (isDefaultQuestion: boolean, isDefaultClassReflection: boolean, isDefaultConference?: boolean | undefined, isDefaultSurvey?: boolean | undefined) => {
1
+ declare const useQuestionList: (isDefaultQuestion: boolean, isDefaultClassReflection: boolean, isDefaultConference?: boolean | undefined, isDefaultSurvey?: boolean | undefined, isWellbeingQuestion?: boolean | undefined) => {
2
2
  gridOptions: any;
3
3
  setRef: (node: any) => any;
4
4
  questionList: any;
@@ -4,6 +4,7 @@ interface Props {
4
4
  isDefaultClassReflection: boolean;
5
5
  isDefaultConference?: boolean;
6
6
  isDefaultSurvey?: boolean;
7
+ isWellbeingQuestion?: boolean;
7
8
  }
8
9
  declare const QuestionBankList: FC<Props>;
9
10
  export default QuestionBankList;