mario-education 2.4.574-feedback → 2.4.574-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.
@@ -0,0 +1,8 @@
1
+ import { IEducatorConversationKpi } from '../configs/types';
2
+ interface IProps {
3
+ educators: IEducatorConversationKpi[];
4
+ open: boolean;
5
+ onClose: Function;
6
+ }
7
+ declare const EducatorConversationModal: ({ educators, open, onClose }: IProps) => JSX.Element;
8
+ export default EducatorConversationModal;
@@ -1,6 +1,6 @@
1
- import { ContactFlow } from '../configs/type';
1
+ import { IWellBeingFlowContact } from '../configs/type';
2
2
  interface IProps {
3
- listContactFlow: ContactFlow[];
3
+ contacts: IWellBeingFlowContact[];
4
4
  handleAddContactFlow: Function;
5
5
  handleDeleteContactFlow: any;
6
6
  handleChangeValueContact: Function;
@@ -8,5 +8,5 @@ interface IProps {
8
8
  openModalDelete: boolean;
9
9
  setOpenModalDelete: Function;
10
10
  }
11
- declare const ContactFlowInformation: ({ listContactFlow, handleAddContactFlow, handleDeleteContactFlow, handleChangeValueContact, contactIdToDeleteRef, openModalDelete, setOpenModalDelete }: IProps) => JSX.Element;
11
+ declare const ContactFlowInformation: ({ contacts, handleAddContactFlow, handleDeleteContactFlow, handleChangeValueContact, contactIdToDeleteRef, openModalDelete, setOpenModalDelete }: IProps) => JSX.Element;
12
12
  export default ContactFlowInformation;
@@ -1,6 +1,3 @@
1
- interface IProps {
2
- listSort: any[];
3
- setListSort: any;
4
- }
5
- declare const FrequencyModeDetail: ({ listSort, setListSort }: IProps) => JSX.Element;
1
+ import { IFrequencyModeDetail } from '../configs/type';
2
+ declare const FrequencyModeDetail: ({ sections, onChange }: IFrequencyModeDetail) => JSX.Element;
6
3
  export default FrequencyModeDetail;
@@ -1,5 +1,5 @@
1
1
  interface IProps {
2
- id: string;
2
+ id: number;
3
3
  data: any;
4
4
  }
5
5
  declare const SortableItem: ({ id, data }: IProps) => JSX.Element;
@@ -1,4 +1,4 @@
1
- import { ContactFlow, Frequency_Mode, Frequency_Setting } from "./type";
1
+ import { IWellBeingFlowContact, Frequency_Mode, Frequency_Setting, IWellBeingSetup } from "./type";
2
2
  export declare const FrequencyMode: {
3
3
  value: Frequency_Mode;
4
4
  title: string;
@@ -8,10 +8,5 @@ export declare const FrequencySetting: {
8
8
  value: Frequency_Setting;
9
9
  title: string;
10
10
  }[];
11
- export declare const listSortCheckIn: {
12
- icon: string;
13
- label: string;
14
- value: string;
15
- order: number;
16
- }[];
17
- export declare const InitialContactFlow: ContactFlow;
11
+ export declare const InitialContactFlow: IWellBeingFlowContact;
12
+ export declare const initSetup: IWellBeingSetup;
@@ -1,15 +1,36 @@
1
1
  export declare enum Frequency_Mode {
2
- Bulk = 0,
3
- Detailed = 1
2
+ Bulk = "Bulk",
3
+ Detailed = "Detailed"
4
4
  }
5
5
  export declare enum Frequency_Setting {
6
- Weekly = 0,
7
- Monthly = 1,
8
- Custom = 2
6
+ Weekly = "Weekly",
7
+ Monthly = "Monthly",
8
+ Custom = "Custom"
9
9
  }
10
- export interface ContactFlow {
10
+ export interface IWellBeingSetup {
11
11
  id: number;
12
- specialContactName: string;
13
- contactRole: string;
14
- contactEmail: string;
12
+ frequencyMode: Frequency_Mode;
13
+ frequencyType: Frequency_Setting;
14
+ customFrequencyDays: number | null;
15
+ isContactFlowEnabled: boolean;
16
+ sections: IWellBeingSection[];
17
+ contacts: IWellBeingFlowContact[];
18
+ }
19
+ export interface IWellBeingSection {
20
+ id: number;
21
+ name: string;
22
+ description: string;
23
+ iconUrl: string;
24
+ order: number;
25
+ defaultOrder: number;
26
+ }
27
+ export interface IWellBeingFlowContact {
28
+ id: number;
29
+ name: string;
30
+ role: string;
31
+ email: string;
32
+ }
33
+ export interface IFrequencyModeDetail {
34
+ sections: IWellBeingSection[];
35
+ onChange: Function;
15
36
  }
@@ -1,23 +1,16 @@
1
1
  /// <reference types="react" />
2
- import { ContactFlow, Frequency_Mode, Frequency_Setting } from '../configs/type';
2
+ import { IWellBeingFlowContact, IWellBeingSection, IWellBeingSetup } from "../configs/type";
3
3
  declare const useFrequencyAndSetup: () => {
4
- frequencyMode: Frequency_Mode;
5
- setFrequencyMode: import("react").Dispatch<import("react").SetStateAction<Frequency_Mode>>;
6
- frequencySetting: Frequency_Setting;
7
- setFrequencySetting: import("react").Dispatch<import("react").SetStateAction<Frequency_Setting>>;
8
- listSort: any[];
9
- setListSort: import("react").Dispatch<import("react").SetStateAction<any[]>>;
10
- valueSettingCustom: number;
11
- setValueSettingCustom: import("react").Dispatch<import("react").SetStateAction<number>>;
12
- switchContactFlow: boolean;
13
- setSwitchContactFlow: import("react").Dispatch<import("react").SetStateAction<boolean>>;
14
- listContactFlow: ContactFlow[];
15
- setListContactFlow: import("react").Dispatch<import("react").SetStateAction<ContactFlow[]>>;
16
4
  handleAddContactFlow: () => void;
17
5
  handleDeleteContactFlow: (id: number) => void;
18
6
  handleChangeValueContact: (id: number, key: string, value: string) => void;
19
7
  contactIdToDeleteRef: import("react").MutableRefObject<number>;
20
8
  openModalDelete: boolean;
21
9
  setOpenModalDelete: import("react").Dispatch<import("react").SetStateAction<boolean>>;
10
+ setup: IWellBeingSetup;
11
+ onChangeSetup: <K extends "id" | "contacts" | "sections" | "frequencyMode" | "frequencyType" | "customFrequencyDays" | "isContactFlowEnabled">(key: K, value: IWellBeingSetup[K]) => void;
12
+ contacts: IWellBeingFlowContact[];
13
+ sections: IWellBeingSection[];
14
+ onChangeSections: (orderSections: IWellBeingSection[]) => void;
22
15
  };
23
16
  export default useFrequencyAndSetup;
@@ -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;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ declare type IProps = {
3
+ isOpen: boolean;
4
+ onClose: Function;
5
+ handleDelete: () => Promise<void>;
6
+ selectedIds: number[];
7
+ };
8
+ declare const _default: React.NamedExoticComponent<IProps>;
9
+ export default _default;