Fakultas Ilmu Komputer UI

userReport.ts 1.86 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
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,
41
42
    phone_number: null,
    deadline: null,
43
44
45
  },
  ...mockUserReportRequest,
};
46
47

export const mockUserReportHistory = {
48
49
50
  has_submitted_this_week: false,
  today_week: 14,
  data: [
51
52
53
54
55
56
57
58
59
60
61
62
63
64
    {
      ...mockUserReportResponse,
      week_num: 12,
    },
    {
      ...mockUserReportResponse,
      week_num: 2,
    },
    {
      ...mockUserReportResponse,
      week_num: 1,
    },
  ],
};
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89

export const mockUserReportComment: { [_: string]: any } = {
  weight: 'baik',
  height: 'baik',
  waist_size: 'baik',
  changes_felt: 'baik',
  hunger_level: 'baik',
  fullness_level: 'baik',
  heavy_meal: 'baik',
  snacks: 'baik',
  sweet_beverages: 'baik',
  sugary_ingredients: 'baik',
  fried_snacks: 'baik',
  umami_snacks: 'baik',
  sweet_snacks: 'baik',
  fruits_portion: 'baik',
  vegetables_portion: 'baik',
  water_consumption: 'baik',
  physical_activity: 'baik',
  physical_activity_other: 'baik',
  time_for_activity: 'baik',
  feeling_rating: 'baik',
  lesson_learned: 'baik',
  problem_faced_and_feedbacks: 'baik',
};