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

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

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

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

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

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

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

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

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

93
export const insightTypeLabel: Record<InsightType, string> = {
94
  MOOD_TREND: "Tendência de Humor",
95
  ENERGY_SLEEP_CORRELATION: "Sono e Energia",
96
  TRIGGER_PATTERN: "Padrão de Gatilho",
97
  WEEKLY_SUMMARY: "Resumo Semanal",
98
  STREAK: "Sequência",
99
  DAILY_ENERGY: "Energia do Dia",
100
  DAILY_SLEEP: "Sono",
101
};
102

103
export const insightPeriodLabel: Record<InsightPeriod, string> = {
104
  DAILY: "Diário",
105
  WEEKLY: "Semanal",
106
  MONTHLY: "Mensal",
107
};