@jealous-robot-dev/shared-types-responses 1.19.13 → 1.19.18
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/headers.d.ts +10 -0
- package/build/services/headers.js +14 -0
- package/build/services/main-data.d.ts +7 -1
- package/package.json +2 -2
package/build/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './services/errors';
|
|
2
2
|
export * from './services/common';
|
|
3
3
|
export * from './services/cookies';
|
|
4
|
+
export * from './services/headers';
|
|
4
5
|
export * from './services/permissions';
|
|
5
6
|
export * from './services/user-settings';
|
|
6
7
|
export * from './services/payments';
|
package/build/index.js
CHANGED
|
@@ -13,6 +13,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
13
13
|
__exportStar(require("./services/errors"), exports);
|
|
14
14
|
__exportStar(require("./services/common"), exports);
|
|
15
15
|
__exportStar(require("./services/cookies"), exports);
|
|
16
|
+
__exportStar(require("./services/headers"), exports);
|
|
16
17
|
__exportStar(require("./services/permissions"), exports);
|
|
17
18
|
__exportStar(require("./services/user-settings"), exports);
|
|
18
19
|
__exportStar(require("./services/payments"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare enum AppHeaders {
|
|
2
|
+
DEVICE_ID = "x-drop-device-id",
|
|
3
|
+
CSFR_TOKEN = "x-drop-csrf",
|
|
4
|
+
SESSION_PASS = "x-drop-session-pass",
|
|
5
|
+
REMEMBERED_USER = "x-drop-uc",
|
|
6
|
+
LOCALE_ID = "x-drop-locale-id",
|
|
7
|
+
CURRENCY = "x-drop-currency",
|
|
8
|
+
NEW_MEMBER = "x-drop-nm",
|
|
9
|
+
AUTH_CTX = "x-drop-auth-ctx"
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AppHeaders = void 0;
|
|
4
|
+
var AppHeaders;
|
|
5
|
+
(function (AppHeaders) {
|
|
6
|
+
AppHeaders["DEVICE_ID"] = "x-drop-device-id";
|
|
7
|
+
AppHeaders["CSFR_TOKEN"] = "x-drop-csrf";
|
|
8
|
+
AppHeaders["SESSION_PASS"] = "x-drop-session-pass";
|
|
9
|
+
AppHeaders["REMEMBERED_USER"] = "x-drop-uc";
|
|
10
|
+
AppHeaders["LOCALE_ID"] = "x-drop-locale-id";
|
|
11
|
+
AppHeaders["CURRENCY"] = "x-drop-currency";
|
|
12
|
+
AppHeaders["NEW_MEMBER"] = "x-drop-nm";
|
|
13
|
+
AppHeaders["AUTH_CTX"] = "x-drop-auth-ctx";
|
|
14
|
+
})(AppHeaders = exports.AppHeaders || (exports.AppHeaders = {}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DropWebEnv, Pages } from '@jealous-robot-dev/shared-ui-lib';
|
|
2
|
-
import { UrgentEvent } from '..';
|
|
2
|
+
import { AuthenticationProviders, UrgentEvent } from '..';
|
|
3
3
|
import { Currency, Locale, QueryResponse } from './common';
|
|
4
4
|
export declare enum UITHEME {
|
|
5
5
|
DARK = "dark",
|
|
@@ -25,10 +25,15 @@ export interface MainUserData {
|
|
|
25
25
|
ppu?: string;
|
|
26
26
|
member_since: number;
|
|
27
27
|
unread_messages_count: number;
|
|
28
|
+
auth_instrument: AuthenticationProviders;
|
|
28
29
|
new_notifications_count: number;
|
|
29
30
|
is_organiser: boolean;
|
|
30
31
|
urgent_event?: UrgentEvent;
|
|
31
32
|
}
|
|
33
|
+
export interface API {
|
|
34
|
+
googleOAuthClient: string;
|
|
35
|
+
fbAuthClient: string;
|
|
36
|
+
}
|
|
32
37
|
export interface CommonData {
|
|
33
38
|
currentUser: MainUserData | null;
|
|
34
39
|
no_consent?: boolean;
|
|
@@ -36,6 +41,7 @@ export interface CommonData {
|
|
|
36
41
|
page: Pages;
|
|
37
42
|
dropWebEnv: DropWebEnv;
|
|
38
43
|
direction: TextDirection;
|
|
44
|
+
API: API;
|
|
39
45
|
preferences: {
|
|
40
46
|
locale: Locale;
|
|
41
47
|
currency: Currency;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jealous-robot-dev/shared-types-responses",
|
|
3
|
-
"version": "1.19.
|
|
3
|
+
"version": "1.19.18",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -24,6 +24,6 @@
|
|
|
24
24
|
"typescript": "^3.8.3"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@jealous-robot-dev/shared-ui-lib": "^1.0.
|
|
27
|
+
"@jealous-robot-dev/shared-ui-lib": "^1.0.9"
|
|
28
28
|
}
|
|
29
29
|
}
|