@dgpholdings/greatoak-shared 1.1.47 → 1.1.49

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,4 +1,4 @@
1
- import { TAuthType, TGender, TUser } from "./TApiUser";
1
+ import { TAuthType, TFitnessGoal, TGender, TUserMetric } from "./TApiUser";
2
2
  export type TApiSignupReq = {
3
3
  email: string;
4
4
  password: string;
@@ -11,6 +11,9 @@ export type TOnboardingData = {
11
11
  userWeightKg: number;
12
12
  dob: Date;
13
13
  gender: TGender;
14
+ fitnessGoal: TFitnessGoal;
15
+ fitnessLevel: number;
16
+ email?: string;
14
17
  };
15
18
  export type TApiSignupRes = TApiSigninRes & {
16
19
  authType: "email";
@@ -46,7 +49,7 @@ export type TApiSigninEmailRes = TApiSigninRes & {
46
49
  export type TApiSigninRes = {
47
50
  status: 200;
48
51
  token: string;
49
- user: TUserSignInData;
52
+ user: TUserMetric;
50
53
  authType: TAuthType;
51
54
  } | {
52
55
  status: 400 | 500;
@@ -63,15 +66,11 @@ export type TApiSignInTokenRes = {
63
66
  } & ({
64
67
  status: 200;
65
68
  token: string;
66
- user?: TUserSignInData;
69
+ user?: TUserMetric;
67
70
  authType: TAuthType;
68
71
  } | {
69
72
  status: 500;
70
73
  });
71
- export type TUserSignInData = Pick<TUser, "email" | "isVerified" | "appLanguage" | "billingPlanType" | "billingPlanVersion" | "paymentMethod" | "authMethod" | "dob" | "weightKg" | "gender"> & {
72
- createdAt: Date;
73
- updatedAt?: Date;
74
- };
75
74
  export type TApiForgotPasswordReq = {
76
75
  email: string;
77
76
  captchaToken: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dgpholdings/greatoak-shared",
3
- "version": "1.1.47",
3
+ "version": "1.1.49",
4
4
  "description": "Shared TypeScript types and utilities for @dgpholdings projects",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",