mario-education 2.4.24-beta → 2.4.25-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.
@@ -4,6 +4,7 @@ interface Props {
4
4
  onChange: Function;
5
5
  value: any | null;
6
6
  externalQuestionIds: number[];
7
+ isDefaultQuestionSurvey?: boolean;
7
8
  }
8
9
  declare const QuestionSelector: FC<Props>;
9
10
  export default QuestionSelector;
@@ -23,6 +23,7 @@ declare type QuestionDetail = {
23
23
  isSurvey: boolean;
24
24
  subQuestions: string[];
25
25
  isBeforeSession: boolean;
26
+ isDefaultQuestionSurvey: boolean;
26
27
  };
27
28
  declare const useQuestionDetail: (id?: number | undefined) => {
28
29
  questionDetail: QuestionDetail;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
3
+ export default _default;
@@ -0,0 +1,35 @@
1
+ /// <reference types="react" />
2
+ declare type questionCateDetail = {
3
+ name: string;
4
+ questionIds?: number[];
5
+ };
6
+ declare type TemplateQuestion = {
7
+ id: number;
8
+ text: string;
9
+ };
10
+ declare const useTemplateCateDetail: () => {
11
+ id: number;
12
+ setId: import("react").Dispatch<import("react").SetStateAction<number>>;
13
+ questionCateDetail: questionCateDetail;
14
+ confirmData: (values: any, cb: any) => Promise<void>;
15
+ initValue: questionCateDetail;
16
+ reset: () => void;
17
+ edited: boolean;
18
+ setEdited: import("react").Dispatch<import("react").SetStateAction<boolean>>;
19
+ setEditedTrue: () => Promise<void>;
20
+ setEditedFalse: () => Promise<void>;
21
+ categoryId: number;
22
+ setCategoryId: import("react").Dispatch<import("react").SetStateAction<number>>;
23
+ questionSelectorValue: {
24
+ id: number;
25
+ value: number;
26
+ label: string;
27
+ text: string;
28
+ } | null;
29
+ setTemporaryQuestion: import("react").Dispatch<import("react").SetStateAction<TemplateQuestion | null>>;
30
+ addQuestion: () => void;
31
+ listQuestions: TemplateQuestion[];
32
+ setListQuestions: import("react").Dispatch<import("react").SetStateAction<TemplateQuestion[]>>;
33
+ removeQuestion: (questionId: number) => void;
34
+ };
35
+ export default useTemplateCateDetail;
@@ -0,0 +1,9 @@
1
+ declare const useTemplateCateList: () => {
2
+ questionCateList: any;
3
+ totalItems: any;
4
+ filters: import("mario-core").Filter;
5
+ changeFilters: (updatedFilters: any) => void;
6
+ getData: () => Promise<void>;
7
+ removeData: (id: number) => void;
8
+ };
9
+ export default useTemplateCateList;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const TemplateSurveyList: FC;
3
+ export default TemplateSurveyList;
@@ -4,3 +4,8 @@ export declare const getById: (id: number) => Promise<import("axios").AxiosRespo
4
4
  export declare const create: (data: any) => Promise<import("axios").AxiosResponse<any>>;
5
5
  export declare const update: (data: any) => Promise<import("axios").AxiosResponse<any>>;
6
6
  export declare const remove: (id: number) => Promise<import("axios").AxiosResponse<any>>;
7
+ export declare const getSurvey: (filter: Filter) => Promise<import("axios").AxiosResponse<any>>;
8
+ export declare const getSurveyById: (id: number) => Promise<import("axios").AxiosResponse<any>>;
9
+ export declare const createSurvey: (data: any) => Promise<import("axios").AxiosResponse<any>>;
10
+ export declare const updateSurvey: (data: any) => Promise<import("axios").AxiosResponse<any>>;
11
+ export declare const removeSurvey: (id: number) => Promise<import("axios").AxiosResponse<any>>;