@dgpholdings/greatoak-shared 1.1.25 → 1.1.26

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,5 @@
1
1
  export type TAuthType = "email" | "apple" | "anonymous";
2
+ export type TGender = "male" | "female" | "unmentioned";
2
3
  export type TApiSignupReq = {
3
4
  email: string;
4
5
  password: string;
@@ -7,10 +8,15 @@ export type TApiSignupReq = {
7
8
  deviceUniqueId: string;
8
9
  captchaToken: string;
9
10
  };
11
+ export type TOnboardingData = {
12
+ userWeightKg: number;
13
+ dob: Date;
14
+ gender: TGender;
15
+ };
10
16
  export type TApiSignupRes = TApiSigninRes & {
11
17
  authType: "email";
12
18
  };
13
- export type TApiSignupAnonymousReq = {
19
+ export type TApiSignupAnonymousReq = TOnboardingData & {
14
20
  model: string;
15
21
  languageCountryCode: string;
16
22
  deviceUniqueId: string;
@@ -81,7 +87,7 @@ export type TUser = {
81
87
  recoveryIssuedTimeStamp: number;
82
88
  recoveryVerifyToken: string;
83
89
  authMethod: TAuthType;
84
- gender?: "male" | "female" | "unmentioned";
90
+ gender?: TGender;
85
91
  dob?: Date;
86
92
  weightKg?: number;
87
93
  heightCm?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dgpholdings/greatoak-shared",
3
- "version": "1.1.25",
3
+ "version": "1.1.26",
4
4
  "description": "Shared TypeScript types and utilities for @dgpholdings projects",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",