@techtulp/choremanji-types 1.3.1 → 1.4.0
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.
- package/dist/error.type.d.ts +4 -0
- package/dist/error.type.js +4 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/otp-type.d.ts +4 -0
- package/dist/otp-type.js +8 -0
- package/package.json +1 -1
package/dist/error.type.d.ts
CHANGED
|
@@ -6,6 +6,10 @@ export declare enum ErrorType {
|
|
|
6
6
|
AccessDenied = "Access denied",
|
|
7
7
|
Unauthorized = "Unauthorized",
|
|
8
8
|
InvalidOTP = "Invalid OTP",
|
|
9
|
+
ExpiredOTP = "OTP has expired",
|
|
10
|
+
OTPResendThreshold = "Please wait before requesting a new OTP",
|
|
11
|
+
MaxOTPAttemptsExceeded = "Maximum OTP attempts exceeded",
|
|
12
|
+
UserNotConfirmed = "Please verify your email first",
|
|
9
13
|
RefreshingTokenFailed = "Refreshing token failed",
|
|
10
14
|
InvalidToken = "Invalid token",
|
|
11
15
|
NoFamily = "User does not belong to a family",
|
package/dist/error.type.js
CHANGED
|
@@ -10,6 +10,10 @@ var ErrorType;
|
|
|
10
10
|
ErrorType["AccessDenied"] = "Access denied";
|
|
11
11
|
ErrorType["Unauthorized"] = "Unauthorized";
|
|
12
12
|
ErrorType["InvalidOTP"] = "Invalid OTP";
|
|
13
|
+
ErrorType["ExpiredOTP"] = "OTP has expired";
|
|
14
|
+
ErrorType["OTPResendThreshold"] = "Please wait before requesting a new OTP";
|
|
15
|
+
ErrorType["MaxOTPAttemptsExceeded"] = "Maximum OTP attempts exceeded";
|
|
16
|
+
ErrorType["UserNotConfirmed"] = "Please verify your email first";
|
|
13
17
|
ErrorType["RefreshingTokenFailed"] = "Refreshing token failed";
|
|
14
18
|
ErrorType["InvalidToken"] = "Invalid token";
|
|
15
19
|
ErrorType["NoFamily"] = "User does not belong to a family";
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -19,6 +19,7 @@ __exportStar(require("./gender"), exports);
|
|
|
19
19
|
__exportStar(require("./user-role"), exports);
|
|
20
20
|
__exportStar(require("./status"), exports);
|
|
21
21
|
__exportStar(require("./error.type"), exports);
|
|
22
|
+
__exportStar(require("./otp-type"), exports);
|
|
22
23
|
__exportStar(require("./get-many.type"), exports);
|
|
23
24
|
__exportStar(require("./task.type"), exports);
|
|
24
25
|
__exportStar(require("./task-track.type"), exports);
|
package/dist/otp-type.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OtpType = void 0;
|
|
4
|
+
var OtpType;
|
|
5
|
+
(function (OtpType) {
|
|
6
|
+
OtpType["REGISTRATION"] = "REGISTRATION";
|
|
7
|
+
OtpType["FORGET_PASSWORD"] = "FORGET_PASSWORD";
|
|
8
|
+
})(OtpType || (exports.OtpType = OtpType = {}));
|