@jealous-robot-dev/shared-types-responses 1.18.18 → 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 +3 -0
- package/build/index.js +3 -0
- package/build/services/common.d.ts +0 -18
- package/build/services/common.js +1 -21
- package/build/services/cookies.d.ts +17 -0
- package/build/services/cookies.js +22 -0
- 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/build/services/permissions.d.ts +7 -0
- package/build/services/permissions.js +16 -0
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
export * from './services/errors';
|
|
1
2
|
export * from './services/common';
|
|
3
|
+
export * from './services/cookies';
|
|
4
|
+
export * from './services/permissions';
|
|
2
5
|
export * from './services/user-settings';
|
|
3
6
|
export * from './services/payments';
|
|
4
7
|
export * from './services/messenger';
|
package/build/index.js
CHANGED
|
@@ -10,7 +10,10 @@ 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);
|
|
15
|
+
__exportStar(require("./services/cookies"), exports);
|
|
16
|
+
__exportStar(require("./services/permissions"), exports);
|
|
14
17
|
__exportStar(require("./services/user-settings"), exports);
|
|
15
18
|
__exportStar(require("./services/payments"), exports);
|
|
16
19
|
__exportStar(require("./services/messenger"), exports);
|
|
@@ -20,24 +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
|
-
export declare enum Cookies {
|
|
31
|
-
CSFR_TOKEN = "_csrf",
|
|
32
|
-
DEVICE_ID = "_uaid",
|
|
33
|
-
SESSION_PASS = "_usp",
|
|
34
|
-
REMEMBERED_USER = "_uc",
|
|
35
|
-
PW_RESET_VERIFICATION = "PW_RESET_VERIFICATION",
|
|
36
|
-
LOCALE_ID = "locale_id",
|
|
37
|
-
CURRENCY = "currency",
|
|
38
|
-
CONSENT = "consent",
|
|
39
|
-
UITHEME = "uitheme"
|
|
40
|
-
}
|
|
41
23
|
export interface FAQ {
|
|
42
24
|
question: string;
|
|
43
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,26 +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
|
-
var Cookies;
|
|
27
|
-
(function (Cookies) {
|
|
28
|
-
Cookies["CSFR_TOKEN"] = "_csrf";
|
|
29
|
-
Cookies["DEVICE_ID"] = "_uaid";
|
|
30
|
-
Cookies["SESSION_PASS"] = "_usp";
|
|
31
|
-
Cookies["REMEMBERED_USER"] = "_uc";
|
|
32
|
-
Cookies["PW_RESET_VERIFICATION"] = "PW_RESET_VERIFICATION";
|
|
33
|
-
Cookies["LOCALE_ID"] = "locale_id";
|
|
34
|
-
Cookies["CURRENCY"] = "currency";
|
|
35
|
-
Cookies["CONSENT"] = "consent";
|
|
36
|
-
Cookies["UITHEME"] = "uitheme";
|
|
37
|
-
})(Cookies = exports.Cookies || (exports.Cookies = {}));
|
|
38
18
|
var CurrencyPosition;
|
|
39
19
|
(function (CurrencyPosition) {
|
|
40
20
|
CurrencyPosition["BEFORE"] = "before";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare enum Cookies {
|
|
2
|
+
CSFR_TOKEN = "_csrf",
|
|
3
|
+
DEVICE_ID = "_uaid",
|
|
4
|
+
SESSION_PASS = "_usp",
|
|
5
|
+
REMEMBERED_USER = "_uc",
|
|
6
|
+
LOCALE_ID = "locale_id",
|
|
7
|
+
CURRENCY = "currency",
|
|
8
|
+
CONSENT = "consent",
|
|
9
|
+
UITHEME = "uitheme"
|
|
10
|
+
}
|
|
11
|
+
export declare enum PermissionCookies {
|
|
12
|
+
PW_RESET_VERIFICATION = "pwrv",
|
|
13
|
+
DELETE_ACCOUNT = "_da",
|
|
14
|
+
SUSPEND_EVENT = "_se",
|
|
15
|
+
RESUME_EVENT = "_re",
|
|
16
|
+
DELETE_EVENT = "_de"
|
|
17
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PermissionCookies = exports.Cookies = void 0;
|
|
4
|
+
var Cookies;
|
|
5
|
+
(function (Cookies) {
|
|
6
|
+
Cookies["CSFR_TOKEN"] = "_csrf";
|
|
7
|
+
Cookies["DEVICE_ID"] = "_uaid";
|
|
8
|
+
Cookies["SESSION_PASS"] = "_usp";
|
|
9
|
+
Cookies["REMEMBERED_USER"] = "_uc";
|
|
10
|
+
Cookies["LOCALE_ID"] = "locale_id";
|
|
11
|
+
Cookies["CURRENCY"] = "currency";
|
|
12
|
+
Cookies["CONSENT"] = "consent";
|
|
13
|
+
Cookies["UITHEME"] = "uitheme";
|
|
14
|
+
})(Cookies = exports.Cookies || (exports.Cookies = {}));
|
|
15
|
+
var PermissionCookies;
|
|
16
|
+
(function (PermissionCookies) {
|
|
17
|
+
PermissionCookies["PW_RESET_VERIFICATION"] = "pwrv";
|
|
18
|
+
PermissionCookies["DELETE_ACCOUNT"] = "_da";
|
|
19
|
+
PermissionCookies["SUSPEND_EVENT"] = "_se";
|
|
20
|
+
PermissionCookies["RESUME_EVENT"] = "_re";
|
|
21
|
+
PermissionCookies["DELETE_EVENT"] = "_de";
|
|
22
|
+
})(PermissionCookies = exports.PermissionCookies || (exports.PermissionCookies = {}));
|
|
@@ -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";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare enum PasswordRequiringPermissions {
|
|
2
|
+
DELETE_ACCOUNT = "DELETE_ACCOUNT",
|
|
3
|
+
SUSPEND_EVENT = "SUSPEND_EVENT",
|
|
4
|
+
RESUME_EVENT = "RESUME_EVENT",
|
|
5
|
+
DELETE_EVENT = "DELETE_EVENT"
|
|
6
|
+
}
|
|
7
|
+
export declare const PWRequiringPermissionsList: PasswordRequiringPermissions[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PWRequiringPermissionsList = exports.PasswordRequiringPermissions = void 0;
|
|
4
|
+
var PasswordRequiringPermissions;
|
|
5
|
+
(function (PasswordRequiringPermissions) {
|
|
6
|
+
PasswordRequiringPermissions["DELETE_ACCOUNT"] = "DELETE_ACCOUNT";
|
|
7
|
+
PasswordRequiringPermissions["SUSPEND_EVENT"] = "SUSPEND_EVENT";
|
|
8
|
+
PasswordRequiringPermissions["RESUME_EVENT"] = "RESUME_EVENT";
|
|
9
|
+
PasswordRequiringPermissions["DELETE_EVENT"] = "DELETE_EVENT";
|
|
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
|
+
];
|