@jealous-robot-dev/shared-types-responses 1.18.21 → 1.18.25
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/cookies.d.ts +3 -1
- package/build/services/cookies.js +8 -1
- package/build/services/errors.d.ts +21 -0
- package/build/services/errors.js +26 -0
- package/build/services/forms/authentication.d.ts +1 -13
- package/build/services/forms/authentication.js +2 -15
- package/build/services/permissions.d.ts +0 -1
- package/build/services/permissions.js +1 -7
- 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";
|
|
@@ -6,7 +6,8 @@ export declare enum Cookies {
|
|
|
6
6
|
LOCALE_ID = "locale_id",
|
|
7
7
|
CURRENCY = "currency",
|
|
8
8
|
CONSENT = "consent",
|
|
9
|
-
UITHEME = "uitheme"
|
|
9
|
+
UITHEME = "uitheme",
|
|
10
|
+
AUTH_CTX = "a_ctx"
|
|
10
11
|
}
|
|
11
12
|
export declare enum PermissionCookies {
|
|
12
13
|
PW_RESET_VERIFICATION = "pwrv",
|
|
@@ -15,3 +16,4 @@ export declare enum PermissionCookies {
|
|
|
15
16
|
RESUME_EVENT = "_re",
|
|
16
17
|
DELETE_EVENT = "_de"
|
|
17
18
|
}
|
|
19
|
+
export declare const PWRequiringPermissionsList: PermissionCookies[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PermissionCookies = exports.Cookies = void 0;
|
|
3
|
+
exports.PWRequiringPermissionsList = exports.PermissionCookies = exports.Cookies = void 0;
|
|
4
4
|
var Cookies;
|
|
5
5
|
(function (Cookies) {
|
|
6
6
|
Cookies["CSFR_TOKEN"] = "_csrf";
|
|
@@ -11,6 +11,7 @@ var Cookies;
|
|
|
11
11
|
Cookies["CURRENCY"] = "currency";
|
|
12
12
|
Cookies["CONSENT"] = "consent";
|
|
13
13
|
Cookies["UITHEME"] = "uitheme";
|
|
14
|
+
Cookies["AUTH_CTX"] = "a_ctx";
|
|
14
15
|
})(Cookies = exports.Cookies || (exports.Cookies = {}));
|
|
15
16
|
var PermissionCookies;
|
|
16
17
|
(function (PermissionCookies) {
|
|
@@ -20,3 +21,9 @@ var PermissionCookies;
|
|
|
20
21
|
PermissionCookies["RESUME_EVENT"] = "_re";
|
|
21
22
|
PermissionCookies["DELETE_EVENT"] = "_de";
|
|
22
23
|
})(PermissionCookies = exports.PermissionCookies || (exports.PermissionCookies = {}));
|
|
24
|
+
exports.PWRequiringPermissionsList = [
|
|
25
|
+
PermissionCookies.DELETE_ACCOUNT,
|
|
26
|
+
PermissionCookies.SUSPEND_EVENT,
|
|
27
|
+
PermissionCookies.RESUME_EVENT,
|
|
28
|
+
PermissionCookies.DELETE_ACCOUNT,
|
|
29
|
+
];
|
|
@@ -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 = {}));
|
|
@@ -5,6 +5,7 @@ export declare enum AuthenticationProviders {
|
|
|
5
5
|
EMAIL = "email",
|
|
6
6
|
LINKEDIN = "linkedin"
|
|
7
7
|
}
|
|
8
|
+
export declare const AuthInstrumentsList: string[];
|
|
8
9
|
export declare enum AuthID {
|
|
9
10
|
EMAIL = "email",
|
|
10
11
|
USERNAME = "username"
|
|
@@ -109,19 +110,6 @@ export declare enum AUTH_ID_TYPE {
|
|
|
109
110
|
EMAIL = "EMAIL",
|
|
110
111
|
USERNAME = "USERNAME"
|
|
111
112
|
}
|
|
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
113
|
export declare enum PositiveAuthResponse {
|
|
126
114
|
NEW_USER = "NEW_USER",
|
|
127
115
|
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.AuthInstrumentsList = exports.AuthenticationProviders = void 0;
|
|
4
4
|
var AuthenticationProviders;
|
|
5
5
|
(function (AuthenticationProviders) {
|
|
6
6
|
AuthenticationProviders["GOOGLE"] = "google";
|
|
@@ -8,6 +8,7 @@ var AuthenticationProviders;
|
|
|
8
8
|
AuthenticationProviders["EMAIL"] = "email";
|
|
9
9
|
AuthenticationProviders["LINKEDIN"] = "linkedin";
|
|
10
10
|
})(AuthenticationProviders = exports.AuthenticationProviders || (exports.AuthenticationProviders = {}));
|
|
11
|
+
exports.AuthInstrumentsList = ['google', 'facebook', 'email', 'linkedin'];
|
|
11
12
|
var AuthID;
|
|
12
13
|
(function (AuthID) {
|
|
13
14
|
AuthID["EMAIL"] = "email";
|
|
@@ -24,20 +25,6 @@ var AUTH_ID_TYPE;
|
|
|
24
25
|
AUTH_ID_TYPE["EMAIL"] = "EMAIL";
|
|
25
26
|
AUTH_ID_TYPE["USERNAME"] = "USERNAME";
|
|
26
27
|
})(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
28
|
var PositiveAuthResponse;
|
|
42
29
|
(function (PositiveAuthResponse) {
|
|
43
30
|
PositiveAuthResponse["NEW_USER"] = "NEW_USER";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.PasswordRequiringPermissions = void 0;
|
|
4
4
|
var PasswordRequiringPermissions;
|
|
5
5
|
(function (PasswordRequiringPermissions) {
|
|
6
6
|
PasswordRequiringPermissions["DELETE_ACCOUNT"] = "DELETE_ACCOUNT";
|
|
@@ -8,9 +8,3 @@ var PasswordRequiringPermissions;
|
|
|
8
8
|
PasswordRequiringPermissions["RESUME_EVENT"] = "RESUME_EVENT";
|
|
9
9
|
PasswordRequiringPermissions["DELETE_EVENT"] = "DELETE_EVENT";
|
|
10
10
|
})(PasswordRequiringPermissions = exports.PasswordRequiringPermissions || (exports.PasswordRequiringPermissions = {}));
|
|
11
|
-
exports.PWRequiringPermissionsList = [
|
|
12
|
-
PasswordRequiringPermissions.DELETE_ACCOUNT,
|
|
13
|
-
PasswordRequiringPermissions.SUSPEND_EVENT,
|
|
14
|
-
PasswordRequiringPermissions.RESUME_EVENT,
|
|
15
|
-
PasswordRequiringPermissions.DELETE_ACCOUNT,
|
|
16
|
-
];
|