fix enum values

This commit is contained in:
João Geonizeli
2022-07-21 22:47:05 -03:00
parent 7c241b5102
commit 0973148835
3 changed files with 32 additions and 32 deletions

View File

@@ -75,16 +75,16 @@ export const QuestionByCheckType: FC = () => {
const {loading, data} = useQuery<QuestionsByCheckTypeCountQuery>( const {loading, data} = useQuery<QuestionsByCheckTypeCountQuery>(
QuestionsByCheckTypeCount, { QuestionsByCheckTypeCount, {
variables: { variables: {
uniqueAnswer: {checkType: ['unique_answer'], ...where}, uniqueAnswer: {checkType: ['UNIQUE_ANSWER'], ...where},
incompleteAffirmation: {checkType: ['incomplete_affirmation'], ...where}, incompleteAffirmation: {checkType: ['INCOMPLETE_AFFIRMATION'], ...where},
multipleAnswer: {checkType: ['multiple_answer'], ...where}, multipleAnswer: {checkType: ['MULTIPLE_ANSWER'], ...where},
negativeFocus: {checkType: ['negative_focus'], ...where}, negativeFocus: {checkType: ['NEGATIVE_FOCUS'], ...where},
assertionAndReason: {checkType: ['assertion_and_reason'], ...where}, assertionAndReason: {checkType: ['ASSERTION_AND_REASON'], ...where},
gap: {checkType: ['gap'], ...where}, gap: {checkType: ['GAP'], ...where},
interpretation: {checkType: ['interpretation'], ...where}, interpretation: {checkType: ['INTERPRETATION'], ...where},
association: {checkType: ['association'], ...where}, association: {checkType: ['ASSOCIATION'], ...where},
orderingOrRanking: {checkType: ['ordering_or_ranking'], ...where}, orderingOrRanking: {checkType: ['ORDERING_OR_RANKING'], ...where},
constantAlternatives: {checkType: ['constant_alternatives'], ...where}, constantAlternatives: {checkType: ['CONSTANT_ALTERNATIVES'], ...where},
} }
}) })

View File

@@ -40,9 +40,9 @@ export const QuestionsByDifficulty: FC = () => {
const {loading, data} = useQuery<QuestionsByDifficultyCountQuery>( const {loading, data} = useQuery<QuestionsByDifficultyCountQuery>(
QuestionsByDifficultyCount, { QuestionsByDifficultyCount, {
variables: { variables: {
easyWhere: {difficulty: ['easy'], ...where}, easyWhere: {difficulty: ['EASY'], ...where},
mediumWhere: {difficulty: ['medium'], ...where}, mediumWhere: {difficulty: ['MEDIUM'], ...where},
hardWhere: {difficulty: ['hard'], ...where}, hardWhere: {difficulty: ['HARD'], ...where},
}, },
}) })

View File

@@ -1,27 +1,27 @@
export const CHECK_TYPE = [ export const CHECK_TYPE = [
{ value: "unique_answer", label: "Resposta Única" }, { value: "UNIQUE_ANSWER", label: "Resposta Única" },
{ value: "incomplete_affirmation", label: "Afirmação Incompleta" }, { value: "INCOMPLETE_AFFIRMATION", label: "Afirmação Incompleta" },
{ value: "multiple_answer", label: "Resposta Múltipla" }, { value: "MULTIPLE_ANSWER", label: "Resposta Múltipla" },
{ value: "negative_focus", label: "Foco Negativo" }, { value: "NEGATIVE_FOCUS", label: "Foco Negativo" },
{ value: "assertion_and_reason", label: "Asserção e Razão" }, { value: "ASSERTION_AND_REASON", label: "Asserção e Razão" },
{ value: "gap", label: "Lacuna" }, { value: "GAP", label: "Lacuna" },
{ value: "interpretation", label: "Interpretação" }, { value: "INTERPRETATION", label: "Interpretação" },
{ value: "association", label: "Associação" }, { value: "ASSOCIATION", label: "Associação" },
{ value: "ordering_or_ranking", label: "Ordenação ou Seriação" }, { value: "ORDERING_OR_RANKING", label: "Ordenação ou Seriação" },
{ value: "constant_alternatives", label: "Alternativas Constantes" }, { value: "CONSTANT_ALTERNATIVES", label: "Alternativas Constantes" },
]; ];
export const DIFFICULTY = [ export const DIFFICULTY = [
{ value: "easy", label: "Fácil" }, { value: "EASY", label: "Fácil" },
{ value: "medium", label: "Média" }, { value: "MEDIUM", label: "Média" },
{ value: "hard", label: "Difícil" }, { value: "HARD", label: "Difícil" },
]; ];
export const BLOOM_TAXONOMY = [ export const BLOOM_TAXONOMY = [
{ value: "remember", label: "Recordar" }, { value: "REMEMBER", label: "Recordar" },
{ value: "understand", label: "Compreender" }, { value: "UNDERSTAND", label: "Compreender" },
{ value: "apply", label: "Aplicar" }, { value: "APPLY", label: "Aplicar" },
{ value: "analyze", label: "Analisar" }, { value: "ANALYZE", label: "Analisar" },
{ value: "evaluate", label: "Avaliar" }, { value: "EVALUATE", label: "Avaliar" },
{ value: "create", label: "Criar" }, { value: "CREATE", label: "Criar" },
]; ];