@jealous-robot-dev/shared-types-responses 1.19.18 → 1.20.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.
@@ -8,7 +8,8 @@ export declare enum Cookies {
8
8
  CONSENT = "consent",
9
9
  UITHEME = "uitheme",
10
10
  NEW_MEMBER = "_nm",
11
- AUTH_CTX = "a_ctx"
11
+ AUTH_CTX = "a_ctx",
12
+ IMPRESSION_ID = "impression_id"
12
13
  }
13
14
  export declare const ListedCookes: Cookies[];
14
15
  export declare enum PermissionCookies {
@@ -13,6 +13,7 @@ var Cookies;
13
13
  Cookies["UITHEME"] = "uitheme";
14
14
  Cookies["NEW_MEMBER"] = "_nm";
15
15
  Cookies["AUTH_CTX"] = "a_ctx";
16
+ Cookies["IMPRESSION_ID"] = "impression_id";
16
17
  })(Cookies = exports.Cookies || (exports.Cookies = {}));
17
18
  exports.ListedCookes = [
18
19
  Cookies.AUTH_CTX, Cookies.CONSENT, Cookies.CSFR_TOKEN,
@@ -6,5 +6,7 @@ export declare enum AppHeaders {
6
6
  LOCALE_ID = "x-drop-locale-id",
7
7
  CURRENCY = "x-drop-currency",
8
8
  NEW_MEMBER = "x-drop-nm",
9
- AUTH_CTX = "x-drop-auth-ctx"
9
+ AUTH_CTX = "x-drop-auth-ctx",
10
+ THEME = "x-drop-ui-theme",
11
+ IMPRESSION_ID = "x-drop-impression-id"
10
12
  }
@@ -11,4 +11,6 @@ var AppHeaders;
11
11
  AppHeaders["CURRENCY"] = "x-drop-currency";
12
12
  AppHeaders["NEW_MEMBER"] = "x-drop-nm";
13
13
  AppHeaders["AUTH_CTX"] = "x-drop-auth-ctx";
14
+ AppHeaders["THEME"] = "x-drop-ui-theme";
15
+ AppHeaders["IMPRESSION_ID"] = "x-drop-impression-id";
14
16
  })(AppHeaders = exports.AppHeaders || (exports.AppHeaders = {}));
@@ -1,24 +1,33 @@
1
1
  import { QueryResponse, PasswordCharacteristics } from '../common';
2
2
  import { FAQ, FormWarning } from '@jealous-robot-dev/shared-ui-lib';
3
+ export declare enum SecuritySettingsCheckboxChannels {
4
+ SECURE_AUTH = "SECURE_AUTH",
5
+ DENY_USERNAME_AS_LOGIN_ID = "DENY_USERNAME_AS_LOGIN_ID",
6
+ NOTIFY_ABOUT_NEW_DEVICE = "NOTIFY_ABOUT_NEW_DEVICE"
7
+ }
3
8
  export interface UserDevice {
4
9
  deviceId: string;
5
- os: {
6
- osName: string;
7
- osVersion: string;
10
+ platform: {
11
+ name: string;
12
+ version: string;
8
13
  };
9
14
  agent: string;
10
15
  isMobile: boolean;
11
16
  ip: string;
12
17
  country?: string;
13
18
  city?: string;
14
- lastLoggedIn: string;
15
- isLoggedIn: boolean;
19
+ last_logged_in: string;
20
+ is_logged_in: boolean;
16
21
  current: boolean;
17
22
  }
23
+ export declare enum SecuritySettingsDeviceActions {
24
+ LOGOUT = "LOGOUT",
25
+ DELETE = "DELETE"
26
+ }
18
27
  export interface UserSecurity {
19
28
  lastUpdateOfPassword: string;
20
29
  secureAuth: boolean;
21
- useUsernameAsId: boolean;
30
+ denyUsernameAsId: boolean;
22
31
  notifyAboutNewDevice: boolean;
23
32
  devices: UserDevice[];
24
33
  blacklist: {
@@ -32,6 +41,7 @@ export interface UserSecurityPhrases {
32
41
  label: string;
33
42
  currentDevice: string;
34
43
  logout: string;
44
+ delete: string;
35
45
  settings: {
36
46
  notify: {
37
47
  label: string;
@@ -1,2 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SecuritySettingsDeviceActions = exports.SecuritySettingsCheckboxChannels = void 0;
4
+ var SecuritySettingsCheckboxChannels;
5
+ (function (SecuritySettingsCheckboxChannels) {
6
+ SecuritySettingsCheckboxChannels["SECURE_AUTH"] = "SECURE_AUTH";
7
+ SecuritySettingsCheckboxChannels["DENY_USERNAME_AS_LOGIN_ID"] = "DENY_USERNAME_AS_LOGIN_ID";
8
+ SecuritySettingsCheckboxChannels["NOTIFY_ABOUT_NEW_DEVICE"] = "NOTIFY_ABOUT_NEW_DEVICE";
9
+ })(SecuritySettingsCheckboxChannels = exports.SecuritySettingsCheckboxChannels || (exports.SecuritySettingsCheckboxChannels = {}));
10
+ var SecuritySettingsDeviceActions;
11
+ (function (SecuritySettingsDeviceActions) {
12
+ SecuritySettingsDeviceActions["LOGOUT"] = "LOGOUT";
13
+ SecuritySettingsDeviceActions["DELETE"] = "DELETE";
14
+ })(SecuritySettingsDeviceActions = exports.SecuritySettingsDeviceActions || (exports.SecuritySettingsDeviceActions = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jealous-robot-dev/shared-types-responses",
3
- "version": "1.19.18",
3
+ "version": "1.20.0",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",