@dgpholdings/greatoak-shared 1.1.46 → 1.1.48

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, TGender, TUserMetric } from "./TApiUser";
2
2
  export type TApiSignupReq = {
3
3
  email: string;
4
4
  password: string;
@@ -46,7 +46,7 @@ export type TApiSigninEmailRes = TApiSigninRes & {
46
46
  export type TApiSigninRes = {
47
47
  status: 200;
48
48
  token: string;
49
- user: TUserSignInData;
49
+ user: TUserMetric;
50
50
  authType: TAuthType;
51
51
  } | {
52
52
  status: 400 | 500;
@@ -63,15 +63,11 @@ export type TApiSignInTokenRes = {
63
63
  } & ({
64
64
  status: 200;
65
65
  token: string;
66
- user?: TUserSignInData;
66
+ user?: TUserMetric;
67
67
  authType: TAuthType;
68
68
  } | {
69
69
  status: 500;
70
70
  });
71
- export type TUserSignInData = Pick<TUser, "email" | "isVerified" | "appLanguage" | "billingPlanType" | "billingPlanVersion" | "paymentMethod" | "authMethod" | "dob" | "weightKg" | "gender"> & {
72
- createdAt: Date;
73
- updatedAt?: Date;
74
- };
75
71
  export type TApiForgotPasswordReq = {
76
72
  email: string;
77
73
  captchaToken: string;
@@ -1,6 +1,6 @@
1
1
  export type TAuthType = "email" | "apple" | "anonymous";
2
2
  export type TGender = "male" | "female" | "unmentioned";
3
- export type TFitnessGoal = "strength" | "hypertrophy" | "endurance" | "general";
3
+ export type TFitnessGoal = "strength" | "hypertrophy" | "endurance" | "general" | "fat_burn" | "flexibility";
4
4
  export type TUserFitnessGoal = "strength" | "hypertrophy" | "endurance" | "general";
5
5
  export type TUserMetric = {
6
6
  dob: Date;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dgpholdings/greatoak-shared",
3
- "version": "1.1.46",
3
+ "version": "1.1.48",
4
4
  "description": "Shared TypeScript types and utilities for @dgpholdings projects",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",