@jealous-robot-dev/shared-types-responses 1.18.7 → 1.18.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -27,6 +27,15 @@ export declare enum CommonErrorReponses {
27
27
  INVALID_INPUT = "INVALID_INPUT",
28
28
  BAD_REQUEST = "BAD_REQUEST"
29
29
  }
30
+ export declare enum Cookies {
31
+ CSFR_TOKEN = "_csrf",
32
+ DEVICE_ID = "_uaid",
33
+ REMEMBERED_USER = "_uc",
34
+ LOCALE_ID = "locale_id",
35
+ CURRENCY = "currency",
36
+ CONSENT = "consent",
37
+ UITHEME = "uitheme"
38
+ }
30
39
  export interface FAQ {
31
40
  question: string;
32
41
  icon: ASSIcons;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Languages = exports.UserPreferences = exports.CurrencyPosition = exports.CommonErrorReponses = exports.ASSIcons = void 0;
3
+ exports.Languages = exports.UserPreferences = exports.CurrencyPosition = exports.Cookies = exports.CommonErrorReponses = exports.ASSIcons = void 0;
4
4
  var ASSIcons;
5
5
  (function (ASSIcons) {
6
6
  ASSIcons["PREFS"] = "PREFS";
@@ -23,6 +23,16 @@ var CommonErrorReponses;
23
23
  CommonErrorReponses["INVALID_INPUT"] = "INVALID_INPUT";
24
24
  CommonErrorReponses["BAD_REQUEST"] = "BAD_REQUEST";
25
25
  })(CommonErrorReponses = exports.CommonErrorReponses || (exports.CommonErrorReponses = {}));
26
+ var Cookies;
27
+ (function (Cookies) {
28
+ Cookies["CSFR_TOKEN"] = "_csrf";
29
+ Cookies["DEVICE_ID"] = "_uaid";
30
+ Cookies["REMEMBERED_USER"] = "_uc";
31
+ Cookies["LOCALE_ID"] = "locale_id";
32
+ Cookies["CURRENCY"] = "currency";
33
+ Cookies["CONSENT"] = "consent";
34
+ Cookies["UITHEME"] = "uitheme";
35
+ })(Cookies = exports.Cookies || (exports.Cookies = {}));
26
36
  var CurrencyPosition;
27
37
  (function (CurrencyPosition) {
28
38
  CurrencyPosition["BEFORE"] = "before";
@@ -0,0 +1,24 @@
1
+ import { Currency, Locale, MainUserData } from "..";
2
+ import { Pages, TextDirection, UITHEME } from "./main-data";
3
+ export interface AuthCtxData {
4
+ isAuth: boolean;
5
+ user: MainUserData | null;
6
+ }
7
+ export interface RouterCtxData {
8
+ page: Pages;
9
+ resetPage: (page: Pages) => void;
10
+ }
11
+ export interface StylesCtxData {
12
+ direction: TextDirection;
13
+ }
14
+ export interface SystemCtxData {
15
+ no_consent?: boolean;
16
+ device_id: string | null;
17
+ ensureDeviceId: () => void;
18
+ }
19
+ export interface PreferencesCtxData {
20
+ locale: Locale;
21
+ currency: Currency;
22
+ theme: UITHEME;
23
+ resetTheme: () => void;
24
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jealous-robot-dev/shared-types-responses",
3
- "version": "1.18.7",
3
+ "version": "1.18.11",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",