eletrotupi / tcc/ api/src/services/export/label.map.ts1230d1819bd28727595923820528cbb25d702eb8
2.1 KB | 89 lines Raw
1
import {
2
  ActivityType,
3
  AppointmentType,
4
  BaseMoodOption,
5
  CareActionType,
6
  IntensityLevel,
7
  MedicinePeriodicity,
8
  MoodComponentOption,
9
  TriggerType,
10
} from "@prisma/client";
11

12
// Temporary copy of the labels the app shows. The app-wide map will eventually
13
// live with the i18n labels work; these are intentionally pt-BR only.
14
export const baseMoodLabel: Record<BaseMoodOption, string> = {
15
  SAD: "Triste",
16
  NEUTRAL: "Neutro",
17
  GOOD: "Bem",
18
  GREAT: "Ótimo",
19
  ANGRY: "Irritado",
20
};
21

22
export const moodComponentLabel: Record<MoodComponentOption, string> = {
23
  JOY: "Alegria",
24
  ANGER: "Raiva",
25
  SADNESS: "Tristeza",
26
  FEAR: "Medo",
27
  GUILT: "Culpa",
28
  FRUSTRATION: "Frustração",
29
  CALM: "Calmo",
30
  MOTIVATED: "Motivado",
31
  TIREDNESS: "Cansaço",
32
  GRATITUDE: "Gratidão",
33
  FOCUS: "Foco",
34
  RESTLESS: "Inquieto",
35
  RELAXED: "Relaxado",
36
  OVERWHELMED: "Sobrecarga",
37
};
38

39
export const intensityLabel: Record<IntensityLevel, string> = {
40
  LIGHT: "Suave",
41
  MODERATE: "Moderada",
42
  HIGH: "Intensa",
43
};
44

45
export const triggerTypeLabel: Record<TriggerType, string> = {
46
  SOCIAL: "Social",
47
  WORK: "Trabalho",
48
  HEALTH: "Saúde",
49
  PHYSICAL: "Físico",
50
  FAMILY: "Família",
51
  THERAPY: "Terapia",
52
  INTERNAL: "Interno",
53
  OTHER: "Outro",
54
};
55

56
export const careActionTypeLabel: Record<CareActionType, string> = {
57
  MEDICINE: "Medicação",
58
  APPOINTMENT: "Consulta",
59
  ACTIVITY: "Atividade",
60
};
61

62
export const appointmentTypeLabel: Record<AppointmentType, string> = {
63
  ANALYST: "Analista",
64
  PSYCHIATRIST: "Psiquiatra",
65
  GP: "Clínico geral",
66
  NUTRITIONIST: "Nutricionista",
67
  PHYSIOTHERAPIST: "Fisioterapeuta",
68
  OTHER: "Consulta",
69
};
70

71
export const activityCategoryLabel: Record<ActivityType, string> = {
72
  WALK: "Caminhada",
73
  YOGA: "Yoga",
74
  GYM: "Academia",
75
  MEDITATION: "Meditação",
76
  SOCIAL: "Momento social",
77
  CREATIVE: "Atividade criativa",
78
  OTHER: "Atividade",
79
};
80

81
export const medicinePeriodicityLabel: Record<MedicinePeriodicity, string> = {
82
  ONCE: "Uma vez",
83
  DAILY: "Diário",
84
  TWICE_DAILY: "2x ao dia",
85
  THREE_TIMES_DAILY: "3x ao dia",
86
  WEEKLY: "Semanal",
87
  BIWEEKLY: "Quinzenal",
88
  MONTHLY: "Mensal",
89
};