Skip to content

Commit

Permalink
add enum value for the physical activity level (#1)
Browse files Browse the repository at this point in the history
Co-authored-by: NHT <[email protected]>
  • Loading branch information
nfesta2023 and hoangtuan910 authored Jan 4, 2024
1 parent 62ba407 commit aa601e3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/enum/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export enum PhysicalActivityLevel {
Light = 'Light',
Moderate = 'Moderate',
Vigorous = 'Vigorous',
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { PhysicalActivityLevel } from 'src/enum';
import { GenericUser } from 'src/type';

export class CreateCustomerProfileRequest {
Expand All @@ -11,7 +12,7 @@ class requestData {
sex: string;
height_m: number;
weight_kg: number;
physical_activity_level: string;
physical_activity_level: PhysicalActivityLevel;
current_diet: string;
allergic_food: string;
chronic_disease: string;
Expand Down

0 comments on commit aa601e3

Please sign in to comment.