@dgpholdings/greatoak-shared 1.2.76 → 1.2.77

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,18 @@
1
1
  import type { TAiFitnessGoal, TAiBodyArea } from "../constants/AiExerciseVocabulary";
2
2
  import { TAuthType, TGender, TProfessionalCategory, TUserMetric, TUserType, TInjuryInfo } from "./TApiUser";
3
- import { TActivityLevel } from "./TUserPreferences";
3
+ import { TActivityLevel, TStablePreferences, TFemaleHealthContext } from "./TUserPreferences";
4
+ /**
5
+ * TOnboardingData: Core user profile data collected during onboarding
6
+ * Does NOT include workout preferences - those come from TStablePreferences
7
+ */
4
8
  export type TOnboardingData = {
5
- userWeightKg: number;
9
+ weightKg: number;
10
+ heightCm: number;
6
11
  dob: Date;
7
12
  gender: TGender;
8
- userHeightCm: number;
9
- metricSystem: "US" | "EU";
10
13
  bodyFatPercentage: number;
14
+ metricSystem: "US" | "EU";
15
+ appLanguage: string;
11
16
  fitnessGoals: TAiFitnessGoal[];
12
17
  fitnessLevel: TActivityLevel;
13
18
  avoidBodyAreas?: TAiBodyArea[];
@@ -21,10 +26,23 @@ export type TOnboardingData = {
21
26
  email?: string;
22
27
  fullName?: string;
23
28
  };
29
+ /**
30
+ * Anonymous signup request
31
+ * = Core onboarding data + device info + OPTIONAL workout preferences
32
+ */
24
33
  export type TApiSignupAnonymousReq = Omit<TOnboardingData, "userCode"> & {
25
34
  model: string;
26
- appLanguage: string;
27
35
  deviceUniqueId: string;
36
+ trainingLocation?: TStablePreferences["trainingLocation"];
37
+ preferredDurationMinutes?: TStablePreferences["preferredDurationMinutes"];
38
+ preferredEquipment?: TStablePreferences["preferredEquipment"];
39
+ preferCompoundMovements?: TStablePreferences["preferCompoundMovements"];
40
+ includeWarmup?: TStablePreferences["includeWarmup"];
41
+ includeCooldown?: TStablePreferences["includeCooldown"];
42
+ warmupStyle?: TStablePreferences["warmupStyle"];
43
+ favouriteMuscleGroups?: TStablePreferences["favouriteMuscleGroups"];
44
+ blacklistedExerciseIds?: TStablePreferences["blacklistedExerciseIds"];
45
+ femaleHealth?: TFemaleHealthContext | null;
28
46
  };
29
47
  export type TApiSignupAnonymousRes = TSignInRes & {
30
48
  authType: "anonymous";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dgpholdings/greatoak-shared",
3
- "version": "1.2.76",
3
+ "version": "1.2.77",
4
4
  "description": "Shared TypeScript types and utilities for @dgpholdings projects",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",