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

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

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

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

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

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

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

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

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

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

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

110
export const notificationKindLabel: Record<NotificationKind, string> = {
111
  DAILY_REMINDER: "Lembrete diário",
112
  MEDICINE_REMINDER: "Lembrete de medicação",
113
  INSIGHT_ALERT: "Alerta de indicador",
114
};