@jealous-robot-dev/shared-types-responses 1.18.25 → 1.19.3
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/services/cookies.d.ts +6 -0
- package/build/services/cookies.js +8 -1
- package/build/services/forms/device-verification.d.ts +7 -0
- package/build/services/forms/device-verification.js +9 -0
- package/build/services/forms/index.d.ts +1 -0
- package/build/services/forms/index.js +1 -0
- package/build/services/forms/verify-email.d.ts +9 -0
- package/build/services/forms/verify-email.js +2 -0
- package/package.json +2 -5
|
@@ -7,6 +7,7 @@ export declare enum Cookies {
|
|
|
7
7
|
CURRENCY = "currency",
|
|
8
8
|
CONSENT = "consent",
|
|
9
9
|
UITHEME = "uitheme",
|
|
10
|
+
NEW_MEMBER = "_nm",
|
|
10
11
|
AUTH_CTX = "a_ctx"
|
|
11
12
|
}
|
|
12
13
|
export declare enum PermissionCookies {
|
|
@@ -16,4 +17,9 @@ export declare enum PermissionCookies {
|
|
|
16
17
|
RESUME_EVENT = "_re",
|
|
17
18
|
DELETE_EVENT = "_de"
|
|
18
19
|
}
|
|
20
|
+
export declare enum CookieAges {
|
|
21
|
+
SHORT = 3600,
|
|
22
|
+
MEDIUM = 43200,
|
|
23
|
+
LARGE = 2592000
|
|
24
|
+
}
|
|
19
25
|
export declare const PWRequiringPermissionsList: PermissionCookies[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PWRequiringPermissionsList = exports.PermissionCookies = exports.Cookies = void 0;
|
|
3
|
+
exports.PWRequiringPermissionsList = exports.CookieAges = 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["NEW_MEMBER"] = "_nm";
|
|
14
15
|
Cookies["AUTH_CTX"] = "a_ctx";
|
|
15
16
|
})(Cookies = exports.Cookies || (exports.Cookies = {}));
|
|
16
17
|
var PermissionCookies;
|
|
@@ -21,6 +22,12 @@ var PermissionCookies;
|
|
|
21
22
|
PermissionCookies["RESUME_EVENT"] = "_re";
|
|
22
23
|
PermissionCookies["DELETE_EVENT"] = "_de";
|
|
23
24
|
})(PermissionCookies = exports.PermissionCookies || (exports.PermissionCookies = {}));
|
|
25
|
+
var CookieAges;
|
|
26
|
+
(function (CookieAges) {
|
|
27
|
+
CookieAges[CookieAges["SHORT"] = 3600] = "SHORT";
|
|
28
|
+
CookieAges[CookieAges["MEDIUM"] = 43200] = "MEDIUM";
|
|
29
|
+
CookieAges[CookieAges["LARGE"] = 2592000] = "LARGE";
|
|
30
|
+
})(CookieAges = exports.CookieAges || (exports.CookieAges = {}));
|
|
24
31
|
exports.PWRequiringPermissionsList = [
|
|
25
32
|
PermissionCookies.DELETE_ACCOUNT,
|
|
26
33
|
PermissionCookies.SUSPEND_EVENT,
|
|
@@ -18,5 +18,12 @@ export interface DeviceVerificationData {
|
|
|
18
18
|
firstname: string;
|
|
19
19
|
attempts: number;
|
|
20
20
|
}
|
|
21
|
+
export declare enum DeviceVerificationResults {
|
|
22
|
+
INVALID = "INVALID",
|
|
23
|
+
EXPIRED = "EXPIRED",
|
|
24
|
+
CORRECT = "CORRECT",
|
|
25
|
+
NOT_FOUND = "NOT_FOUND",
|
|
26
|
+
NO_MORE_ATTEMPTS = "NO_MORE_ATTEMPTS"
|
|
27
|
+
}
|
|
21
28
|
export interface DeviceVerificationResponse extends QueryResponse<DeviceVerificationData, DeviceVerificationPhrases> {
|
|
22
29
|
}
|
|
@@ -1,2 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeviceVerificationResults = void 0;
|
|
4
|
+
var DeviceVerificationResults;
|
|
5
|
+
(function (DeviceVerificationResults) {
|
|
6
|
+
DeviceVerificationResults["INVALID"] = "INVALID";
|
|
7
|
+
DeviceVerificationResults["EXPIRED"] = "EXPIRED";
|
|
8
|
+
DeviceVerificationResults["CORRECT"] = "CORRECT";
|
|
9
|
+
DeviceVerificationResults["NOT_FOUND"] = "NOT_FOUND";
|
|
10
|
+
DeviceVerificationResults["NO_MORE_ATTEMPTS"] = "NO_MORE_ATTEMPTS";
|
|
11
|
+
})(DeviceVerificationResults = exports.DeviceVerificationResults || (exports.DeviceVerificationResults = {}));
|
|
@@ -11,6 +11,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
__exportStar(require("./sharer"), exports);
|
|
14
|
+
__exportStar(require("./verify-email"), exports);
|
|
14
15
|
__exportStar(require("./authentication"), exports);
|
|
15
16
|
__exportStar(require("./forgot-password"), exports);
|
|
16
17
|
__exportStar(require("./device-verification"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jealous-robot-dev/shared-types-responses",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.19.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -23,8 +23,5 @@
|
|
|
23
23
|
"del-cli": "^3.0.0",
|
|
24
24
|
"typescript": "^3.8.3"
|
|
25
25
|
},
|
|
26
|
-
"dependencies": {
|
|
27
|
-
"@jealous-robot-dev/shared-types-databases-mongo": "^1.0.2",
|
|
28
|
-
"@jealous-robot-dev/shared-types-errors": "^1.0.0"
|
|
29
|
-
}
|
|
26
|
+
"dependencies": {}
|
|
30
27
|
}
|