From ed3152aa2bb25d639b456fcd9989c73d8e3b741a Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Wed, 25 Jan 2023 13:28:00 +0100 Subject: [PATCH] Added more docs. --- gymboard-app/src/api/gymboard-api.ts | 10 +++++++++- gymboard-app/src/pages/gym/GymSubmissionPage.vue | 15 +++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/gymboard-app/src/api/gymboard-api.ts b/gymboard-app/src/api/gymboard-api.ts index b1dac84..9685057 100644 --- a/gymboard-app/src/api/gymboard-api.ts +++ b/gymboard-app/src/api/gymboard-api.ts @@ -31,12 +31,20 @@ export interface ExerciseSubmission { createdAt: string, gym: SimpleGym, exercise: Exercise, - status: string, + status: ExerciseSubmissionStatus, submitterName: string, weight: number, reps: number } +export enum ExerciseSubmissionStatus { + WAITING = 'WAITING', + PROCESSING = 'PROCESSING', + FAILED = 'FAILED', + COMPLETED = 'COMPLETED', + VERIFIED = 'VERIFIED' +} + export interface Gym { countryCode: string, countryName: string, diff --git a/gymboard-app/src/pages/gym/GymSubmissionPage.vue b/gymboard-app/src/pages/gym/GymSubmissionPage.vue index 41e5aac..e3101b0 100644 --- a/gymboard-app/src/pages/gym/GymSubmissionPage.vue +++ b/gymboard-app/src/pages/gym/GymSubmissionPage.vue @@ -1,3 +1,15 @@ +