@jealous-robot-dev/shared-types-responses 1.18.21 → 1.18.22
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/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/services/common.d.ts +0 -7
- package/build/services/common.js +1 -9
- package/build/services/errors.d.ts +21 -0
- package/build/services/errors.js +26 -0
- package/build/services/forms/authentication.d.ts +0 -13
- package/build/services/forms/authentication.js +1 -15
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
package/build/index.js
CHANGED
|
@@ -10,6 +10,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
10
|
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./services/errors"), exports);
|
|
13
14
|
__exportStar(require("./services/common"), exports);
|
|
14
15
|
__exportStar(require("./services/cookies"), exports);
|
|
15
16
|
__exportStar(require("./services/permissions"), exports);
|
|
@@ -20,13 +20,6 @@ export declare enum ASSIcons {
|
|
|
20
20
|
PERSONAL_INFO = "PERSONAL_INFO",
|
|
21
21
|
MSG = "MSG"
|
|
22
22
|
}
|
|
23
|
-
export declare enum CommonErrorReponses {
|
|
24
|
-
NOT_FOUND = "NOT_FOUND",
|
|
25
|
-
INTERNAL_ERROR = "INTERNAL_ERROR",
|
|
26
|
-
MISSING_FIELDS = "MISSING_FIELDS",
|
|
27
|
-
INVALID_INPUT = "INVALID_INPUT",
|
|
28
|
-
BAD_REQUEST = "BAD_REQUEST"
|
|
29
|
-
}
|
|
30
23
|
export interface FAQ {
|
|
31
24
|
question: string;
|
|
32
25
|
icon: ASSIcons;
|
package/build/services/common.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Languages = exports.UserPreferences = exports.CurrencyPosition = exports.
|
|
3
|
+
exports.Languages = exports.UserPreferences = exports.CurrencyPosition = exports.ASSIcons = void 0;
|
|
4
4
|
var ASSIcons;
|
|
5
5
|
(function (ASSIcons) {
|
|
6
6
|
ASSIcons["PREFS"] = "PREFS";
|
|
@@ -15,14 +15,6 @@ var ASSIcons;
|
|
|
15
15
|
ASSIcons["PERSONAL_INFO"] = "PERSONAL_INFO";
|
|
16
16
|
ASSIcons["MSG"] = "MSG";
|
|
17
17
|
})(ASSIcons = exports.ASSIcons || (exports.ASSIcons = {}));
|
|
18
|
-
var CommonErrorReponses;
|
|
19
|
-
(function (CommonErrorReponses) {
|
|
20
|
-
CommonErrorReponses["NOT_FOUND"] = "NOT_FOUND";
|
|
21
|
-
CommonErrorReponses["INTERNAL_ERROR"] = "INTERNAL_ERROR";
|
|
22
|
-
CommonErrorReponses["MISSING_FIELDS"] = "MISSING_FIELDS";
|
|
23
|
-
CommonErrorReponses["INVALID_INPUT"] = "INVALID_INPUT";
|
|
24
|
-
CommonErrorReponses["BAD_REQUEST"] = "BAD_REQUEST";
|
|
25
|
-
})(CommonErrorReponses = exports.CommonErrorReponses || (exports.CommonErrorReponses = {}));
|
|
26
18
|
var CurrencyPosition;
|
|
27
19
|
(function (CurrencyPosition) {
|
|
28
20
|
CurrencyPosition["BEFORE"] = "before";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare enum CommonErrorReponses {
|
|
2
|
+
NOT_FOUND = "NOT_FOUND",
|
|
3
|
+
INTERNAL_ERROR = "INTERNAL_ERROR",
|
|
4
|
+
NO_PERMISSION = "NO_PERMISSION",
|
|
5
|
+
MISSING_FIELDS = "MISSING_FIELDS",
|
|
6
|
+
INVALID_INPUT = "INVALID_INPUT",
|
|
7
|
+
BAD_REQUEST = "BAD_REQUEST"
|
|
8
|
+
}
|
|
9
|
+
export declare enum AuthRespErrors {
|
|
10
|
+
INVALID_INPUT = "INVALID_INPUT",
|
|
11
|
+
INVALID_PASSWORD = "INVALID_PASSWORD",
|
|
12
|
+
INVALID_FIRSTNAME = "INVALID_FIRSTNAME",
|
|
13
|
+
INVALID_LASTNAME = "INVALID_LASTNAME",
|
|
14
|
+
INVALID_USERNAME = "INVALID_USERNAME",
|
|
15
|
+
INVALID_EMAIL = "INVALID_EMAIL",
|
|
16
|
+
EMAIL_UNVIERIFIED = "EMAIL_UNVIERIFIED",
|
|
17
|
+
EMAIL_IN_USE = "EMAIL_IN_USE",
|
|
18
|
+
MISSING_PARAM = "MISSING_PARAM",
|
|
19
|
+
USERNAME_IN_USE = "USERNAME_IN_USE",
|
|
20
|
+
USER_NOT_FOUND = "USER_NOT_FOUND"
|
|
21
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AuthRespErrors = exports.CommonErrorReponses = void 0;
|
|
4
|
+
var CommonErrorReponses;
|
|
5
|
+
(function (CommonErrorReponses) {
|
|
6
|
+
CommonErrorReponses["NOT_FOUND"] = "NOT_FOUND";
|
|
7
|
+
CommonErrorReponses["INTERNAL_ERROR"] = "INTERNAL_ERROR";
|
|
8
|
+
CommonErrorReponses["NO_PERMISSION"] = "NO_PERMISSION";
|
|
9
|
+
CommonErrorReponses["MISSING_FIELDS"] = "MISSING_FIELDS";
|
|
10
|
+
CommonErrorReponses["INVALID_INPUT"] = "INVALID_INPUT";
|
|
11
|
+
CommonErrorReponses["BAD_REQUEST"] = "BAD_REQUEST";
|
|
12
|
+
})(CommonErrorReponses = exports.CommonErrorReponses || (exports.CommonErrorReponses = {}));
|
|
13
|
+
var AuthRespErrors;
|
|
14
|
+
(function (AuthRespErrors) {
|
|
15
|
+
AuthRespErrors["INVALID_INPUT"] = "INVALID_INPUT";
|
|
16
|
+
AuthRespErrors["INVALID_PASSWORD"] = "INVALID_PASSWORD";
|
|
17
|
+
AuthRespErrors["INVALID_FIRSTNAME"] = "INVALID_FIRSTNAME";
|
|
18
|
+
AuthRespErrors["INVALID_LASTNAME"] = "INVALID_LASTNAME";
|
|
19
|
+
AuthRespErrors["INVALID_USERNAME"] = "INVALID_USERNAME";
|
|
20
|
+
AuthRespErrors["INVALID_EMAIL"] = "INVALID_EMAIL";
|
|
21
|
+
AuthRespErrors["EMAIL_UNVIERIFIED"] = "EMAIL_UNVIERIFIED";
|
|
22
|
+
AuthRespErrors["EMAIL_IN_USE"] = "EMAIL_IN_USE";
|
|
23
|
+
AuthRespErrors["MISSING_PARAM"] = "MISSING_PARAM";
|
|
24
|
+
AuthRespErrors["USERNAME_IN_USE"] = "USERNAME_IN_USE";
|
|
25
|
+
AuthRespErrors["USER_NOT_FOUND"] = "USER_NOT_FOUND";
|
|
26
|
+
})(AuthRespErrors = exports.AuthRespErrors || (exports.AuthRespErrors = {}));
|
|
@@ -109,19 +109,6 @@ export declare enum AUTH_ID_TYPE {
|
|
|
109
109
|
EMAIL = "EMAIL",
|
|
110
110
|
USERNAME = "USERNAME"
|
|
111
111
|
}
|
|
112
|
-
export declare enum AuthRespErrors {
|
|
113
|
-
INVALID_INPUT = "INVALID_INPUT",
|
|
114
|
-
INVALID_PASSWORD = "INVALID_PASSWORD",
|
|
115
|
-
INVALID_FIRSTNAME = "INVALID_FIRSTNAME",
|
|
116
|
-
INVALID_LASTNAME = "INVALID_LASTNAME",
|
|
117
|
-
INVALID_USERNAME = "INVALID_USERNAME",
|
|
118
|
-
INVALID_EMAIL = "INVALID_EMAIL",
|
|
119
|
-
EMAIL_UNVIERIFIED = "EMAIL_UNVIERIFIED",
|
|
120
|
-
EMAIL_IN_USE = "EMAIL_IN_USE",
|
|
121
|
-
MISSING_PARAM = "MISSING_PARAM",
|
|
122
|
-
USERNAME_IN_USE = "USERNAME_IN_USE",
|
|
123
|
-
USER_NOT_FOUND = "USER_NOT_FOUND"
|
|
124
|
-
}
|
|
125
112
|
export declare enum PositiveAuthResponse {
|
|
126
113
|
NEW_USER = "NEW_USER",
|
|
127
114
|
WELCOME_BACK = "WELCOME_BACK",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PositiveAuthResponse = exports.
|
|
3
|
+
exports.PositiveAuthResponse = 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";
|
|
@@ -24,20 +24,6 @@ var AUTH_ID_TYPE;
|
|
|
24
24
|
AUTH_ID_TYPE["EMAIL"] = "EMAIL";
|
|
25
25
|
AUTH_ID_TYPE["USERNAME"] = "USERNAME";
|
|
26
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["INVALID_USERNAME"] = "INVALID_USERNAME";
|
|
34
|
-
AuthRespErrors["INVALID_EMAIL"] = "INVALID_EMAIL";
|
|
35
|
-
AuthRespErrors["EMAIL_UNVIERIFIED"] = "EMAIL_UNVIERIFIED";
|
|
36
|
-
AuthRespErrors["EMAIL_IN_USE"] = "EMAIL_IN_USE";
|
|
37
|
-
AuthRespErrors["MISSING_PARAM"] = "MISSING_PARAM";
|
|
38
|
-
AuthRespErrors["USERNAME_IN_USE"] = "USERNAME_IN_USE";
|
|
39
|
-
AuthRespErrors["USER_NOT_FOUND"] = "USER_NOT_FOUND";
|
|
40
|
-
})(AuthRespErrors = exports.AuthRespErrors || (exports.AuthRespErrors = {}));
|
|
41
27
|
var PositiveAuthResponse;
|
|
42
28
|
(function (PositiveAuthResponse) {
|
|
43
29
|
PositiveAuthResponse["NEW_USER"] = "NEW_USER";
|