@jealous-robot-dev/shared-types-responses 1.18.1 → 1.18.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -104,3 +104,24 @@ export interface ShortAuthFormData {
104
104
  export interface AuthFormData {
105
105
  prev_session?: ShortAuthFormData;
106
106
  }
107
+ export declare enum AUTH_ID_TYPE {
108
+ EMAIL = "EMAIL",
109
+ USERNAME = "USERNAME"
110
+ }
111
+ export declare enum AuthRespErrors {
112
+ INVALID_INPUT = "INVALID_INPUT",
113
+ INVALID_PASSWORD = "INVALID_PASSWORD",
114
+ INVALID_FIRSTNAME = "INVALID_FIRSTNAME",
115
+ INVALID_LASTNAME = "INVALID_LASTNAME",
116
+ EMAIL_UNVIERIFIED = "EMAIL_UNVIERIFIED",
117
+ EMAIL_IN_USE = "EMAIL_IN_USE",
118
+ MISSING_PARAM = "MISSING_PARAM",
119
+ USERNAME_IN_USE = "USERNAME_IN_USE",
120
+ USER_NOT_FOUND = "USER_NOT_FOUND"
121
+ }
122
+ export declare enum PositiveAuthResponse {
123
+ NEW_USER = "NEW_USER",
124
+ WELCOME_BACK = "WELCOME_BACK",
125
+ VERIFY_DEVICE = "VERIFY_DEVICE",
126
+ PASS = "PASS"
127
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AuthenticationWindows = exports.AuthID = exports.AuthenticationProviders = void 0;
3
+ exports.PositiveAuthResponse = exports.AuthRespErrors = exports.AUTH_ID_TYPE = exports.AuthenticationWindows = exports.AuthID = exports.AuthenticationProviders = void 0;
4
4
  var AuthenticationProviders;
5
5
  (function (AuthenticationProviders) {
6
6
  AuthenticationProviders["GOOGLE"] = "google";
@@ -19,3 +19,27 @@ var AuthenticationWindows;
19
19
  AuthenticationWindows["FINISH_SIGNUP"] = "finish sign up";
20
20
  AuthenticationWindows["WELCOME"] = "welcome";
21
21
  })(AuthenticationWindows = exports.AuthenticationWindows || (exports.AuthenticationWindows = {}));
22
+ var AUTH_ID_TYPE;
23
+ (function (AUTH_ID_TYPE) {
24
+ AUTH_ID_TYPE["EMAIL"] = "EMAIL";
25
+ AUTH_ID_TYPE["USERNAME"] = "USERNAME";
26
+ })(AUTH_ID_TYPE = exports.AUTH_ID_TYPE || (exports.AUTH_ID_TYPE = {}));
27
+ var AuthRespErrors;
28
+ (function (AuthRespErrors) {
29
+ AuthRespErrors["INVALID_INPUT"] = "INVALID_INPUT";
30
+ AuthRespErrors["INVALID_PASSWORD"] = "INVALID_PASSWORD";
31
+ AuthRespErrors["INVALID_FIRSTNAME"] = "INVALID_FIRSTNAME";
32
+ AuthRespErrors["INVALID_LASTNAME"] = "INVALID_LASTNAME";
33
+ AuthRespErrors["EMAIL_UNVIERIFIED"] = "EMAIL_UNVIERIFIED";
34
+ AuthRespErrors["EMAIL_IN_USE"] = "EMAIL_IN_USE";
35
+ AuthRespErrors["MISSING_PARAM"] = "MISSING_PARAM";
36
+ AuthRespErrors["USERNAME_IN_USE"] = "USERNAME_IN_USE";
37
+ AuthRespErrors["USER_NOT_FOUND"] = "USER_NOT_FOUND";
38
+ })(AuthRespErrors = exports.AuthRespErrors || (exports.AuthRespErrors = {}));
39
+ var PositiveAuthResponse;
40
+ (function (PositiveAuthResponse) {
41
+ PositiveAuthResponse["NEW_USER"] = "NEW_USER";
42
+ PositiveAuthResponse["WELCOME_BACK"] = "WELCOME_BACK";
43
+ PositiveAuthResponse["VERIFY_DEVICE"] = "VERIFY_DEVICE";
44
+ PositiveAuthResponse["PASS"] = "PASS";
45
+ })(PositiveAuthResponse = exports.PositiveAuthResponse || (exports.PositiveAuthResponse = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jealous-robot-dev/shared-types-responses",
3
- "version": "1.18.1",
3
+ "version": "1.18.5",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",