Fakultas Ilmu Komputer UI

userReport.ts 1.22 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import {
  UserReportRequest,
  UserReportResponse,
} from 'services/progress/models';
import { UserRole } from 'services/auth/models';

export const mockUserReportRequest: UserReportRequest = {
  weight: 155,
  height: 188,
  waist_size: 100,
  changes_felt: 1,
  hunger_level: 1,
  fullness_level: 1,
  heavy_meal: 1,
  snacks: 1,
  sweet_beverages: 1,
  sugary_ingredients: 1,
  fried_snacks: 1,
  umami_snacks: 1,
  sweet_snacks: 1,
  fruits_portion: 1,
  vegetables_portion: 1,
  water_consumption: 1,
  physical_activity: [1, 2],
  physical_activity_other: 'n',
  time_for_activity: 1,
  feeling_rating: 2,
  lesson_learned: 'a',
  problem_faced_and_feedbacks: 'x',
};

export const mockUserReportResponse: UserReportResponse = {
  id: 4,
  nutritionist: 1,
  week_num: 2,
  client: {
    id: 9,
    name: 'Shin Ryujin',
    email: 'ryujin@itzy.com',
    role: UserRole.CLIENT,
  },
  ...mockUserReportRequest,
};
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63

// TODO: to be adjusted
export const mockUserReportHistory = {
  has_not_filled_form: true,
  current_week_num: 14,
  reports: [
    {
      ...mockUserReportResponse,
      week_num: 12,
    },
    {
      ...mockUserReportResponse,
      week_num: 2,
    },
    {
      ...mockUserReportResponse,
      week_num: 1,
    },
  ],
};