@dgpholdings/greatoak-shared 1.1.121 → 1.1.122

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.
@@ -37,3 +37,30 @@ export type TApiSignInTokenReq = {
37
37
  isLimited: boolean;
38
38
  };
39
39
  export type TApiSignInTokenRes = TSignInRes;
40
+ /**
41
+ * The following api has 2 purposes
42
+ * 1. set user's email for the first time (i.e email user dont exist)
43
+ * 2. User somehow logged out (or reinstalled app) of the app and sice we dont let user log out, or log in after registration,
44
+ * then user will be thrown to onboarding screen and the user can choose "I am already registered/ login" to get back access
45
+ */
46
+ export type TApiInitiateVerifyEmailReq = {
47
+ email: string;
48
+ model: string;
49
+ deviceUniqueId: string;
50
+ };
51
+ export type TApiInitiateVerifyEmailRes = {
52
+ status: 200;
53
+ descriptionCode: string;
54
+ };
55
+ export type TApiVerifyEmailReq = {
56
+ email: string;
57
+ otp: string;
58
+ };
59
+ export type TApiVerifyEmailRes = {
60
+ state: "success";
61
+ status: 200;
62
+ } | {
63
+ state: "failed" | "expired";
64
+ status: 400;
65
+ attemptsRemaining: number;
66
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dgpholdings/greatoak-shared",
3
- "version": "1.1.121",
3
+ "version": "1.1.122",
4
4
  "description": "Shared TypeScript types and utilities for @dgpholdings projects",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",