@jealous-robot-dev/shared-types-responses 1.46.5 → 1.46.6
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 +14 -0
- package/build/index.js +26 -0
- package/build/services/common.d.ts +39 -0
- package/build/services/common.js +33 -0
- package/build/services/errors.d.ts +21 -0
- package/build/services/errors.js +26 -0
- package/build/services/events/customerhub.d.ts +39 -0
- package/build/services/events/customerhub.js +2 -0
- package/build/services/events/event-checkout.d.ts +51 -0
- package/build/services/events/event-checkout.js +15 -0
- package/build/services/events/event-impression.d.ts +19 -0
- package/build/services/events/event-impression.js +2 -0
- package/build/services/events/event-search.d.ts +15 -0
- package/build/services/events/event-search.js +2 -0
- package/build/services/events/event.d.ts +85 -0
- package/build/services/events/event.js +2 -0
- package/build/services/events/events.d.ts +58 -0
- package/build/services/events/events.js +2 -0
- package/build/services/events/host-an-event.d.ts +42 -0
- package/build/services/events/host-an-event.js +3 -0
- package/build/services/events/host.d.ts +62 -0
- package/build/services/events/host.js +2 -0
- package/build/services/events/index.d.ts +14 -0
- package/build/services/events/index.js +26 -0
- package/build/services/events/manage-events.d.ts +33 -0
- package/build/services/events/manage-events.js +2 -0
- package/build/services/events/pic.d.ts +27 -0
- package/build/services/events/pic.js +2 -0
- package/build/services/events/seance-join.d.ts +20 -0
- package/build/services/events/seance-join.js +10 -0
- package/build/services/events/shorcuts.d.ts +17 -0
- package/build/services/events/shorcuts.js +2 -0
- package/build/services/events/tag-search.d.ts +13 -0
- package/build/services/events/tag-search.js +2 -0
- package/build/services/events/urgent-event.d.ts +20 -0
- package/build/services/events/urgent-event.js +8 -0
- package/build/services/forms/authentication.d.ts +43 -0
- package/build/services/forms/authentication.js +20 -0
- package/build/services/forms/index.d.ts +1 -0
- package/build/services/forms/index.js +13 -0
- package/build/services/landing-page.d.ts +50 -0
- package/build/services/landing-page.js +11 -0
- package/build/services/live-room/client.d.ts +58 -0
- package/build/services/live-room/client.js +2 -0
- package/build/services/live-room/conference.d.ts +0 -0
- package/build/services/live-room/conference.js +1 -0
- package/build/services/live-room/fallback.d.ts +63 -0
- package/build/services/live-room/fallback.js +13 -0
- package/build/services/live-room/index.d.ts +4 -0
- package/build/services/live-room/index.js +16 -0
- package/build/services/live-room/server.d.ts +143 -0
- package/build/services/live-room/server.js +2 -0
- package/build/services/live-room/upload.d.ts +8 -0
- package/build/services/live-room/upload.js +2 -0
- package/build/services/main-data.d.ts +48 -0
- package/build/services/main-data.js +2 -0
- package/build/services/messenger/conversations.d.ts +61 -0
- package/build/services/messenger/conversations.js +2 -0
- package/build/services/messenger/index.d.ts +10 -0
- package/build/services/messenger/index.js +16 -0
- package/build/services/messenger/live-channel.d.ts +65 -0
- package/build/services/messenger/live-channel.js +19 -0
- package/build/services/messenger/messages.d.ts +17 -0
- package/build/services/messenger/messages.js +10 -0
- package/build/services/messenger/user-inbox.d.ts +16 -0
- package/build/services/messenger/user-inbox.js +2 -0
- package/build/services/payments/cancellation.d.ts +53 -0
- package/build/services/payments/cancellation.js +2 -0
- package/build/services/payments/index.d.ts +1 -0
- package/build/services/payments/index.js +13 -0
- package/build/services/permissions.d.ts +7 -0
- package/build/services/permissions.js +11 -0
- package/build/services/static-components/index.d.ts +1 -0
- package/build/services/static-components/index.js +13 -0
- package/build/services/static-components/searchbar.d.ts +17 -0
- package/build/services/static-components/searchbar.js +2 -0
- package/build/services/stats/host-payouts.d.ts +35 -0
- package/build/services/stats/host-payouts.js +2 -0
- package/build/services/stats/index.d.ts +7 -0
- package/build/services/stats/index.js +19 -0
- package/build/services/stats/payment-history.d.ts +43 -0
- package/build/services/stats/payment-history.js +3 -0
- package/build/services/stats/schedule.d.ts +19 -0
- package/build/services/stats/schedule.js +2 -0
- package/build/services/stats/user-notifications.d.ts +24 -0
- package/build/services/stats/user-notifications.js +2 -0
- package/build/services/stats/user-performance.d.ts +13 -0
- package/build/services/stats/user-performance.js +2 -0
- package/build/services/stats/user-reviews.d.ts +24 -0
- package/build/services/stats/user-reviews.js +2 -0
- package/build/services/stats/user-visitors.d.ts +39 -0
- package/build/services/stats/user-visitors.js +2 -0
- package/build/services/sync.d.ts +39 -0
- package/build/services/sync.js +44 -0
- package/build/services/user/collections.d.ts +17 -0
- package/build/services/user/collections.js +2 -0
- package/build/services/user/index.d.ts +4 -0
- package/build/services/user/index.js +16 -0
- package/build/services/user/ppu.d.ts +14 -0
- package/build/services/user/ppu.js +2 -0
- package/build/services/user/profile-basic-data.d.ts +48 -0
- package/build/services/user/profile-basic-data.js +10 -0
- package/build/services/user/search-user.d.ts +12 -0
- package/build/services/user/search-user.js +2 -0
- package/build/services/user-settings/deactivate-account.d.ts +10 -0
- package/build/services/user-settings/deactivate-account.js +2 -0
- package/build/services/user-settings/event-settings.d.ts +22 -0
- package/build/services/user-settings/event-settings.js +2 -0
- package/build/services/user-settings/index.d.ts +7 -0
- package/build/services/user-settings/index.js +19 -0
- package/build/services/user-settings/user-notifications-settings.d.ts +18 -0
- package/build/services/user-settings/user-notifications-settings.js +2 -0
- package/build/services/user-settings/user-payments.d.ts +8 -0
- package/build/services/user-settings/user-payments.js +2 -0
- package/build/services/user-settings/user-personal-info.d.ts +18 -0
- package/build/services/user-settings/user-personal-info.js +2 -0
- package/build/services/user-settings/user-privacy.d.ts +12 -0
- package/build/services/user-settings/user-privacy.js +3 -0
- package/build/services/user-settings/user-security.d.ts +38 -0
- package/build/services/user-settings/user-security.js +2 -0
- package/package.json +1 -1
@@ -0,0 +1,27 @@
|
|
1
|
+
export interface PicUploadInput {
|
2
|
+
pics: {
|
3
|
+
id: string;
|
4
|
+
size: number;
|
5
|
+
hash?: string;
|
6
|
+
index: number;
|
7
|
+
width: number;
|
8
|
+
height: number;
|
9
|
+
}[];
|
10
|
+
}
|
11
|
+
export interface PicUploadURLOutput {
|
12
|
+
repetitions: string[];
|
13
|
+
urls: {
|
14
|
+
id: string;
|
15
|
+
url: string;
|
16
|
+
hash: string;
|
17
|
+
width: number;
|
18
|
+
height: number;
|
19
|
+
}[];
|
20
|
+
}
|
21
|
+
export interface PicUploadSuccessOutput {
|
22
|
+
hasRepetitions: boolean;
|
23
|
+
pics: {
|
24
|
+
src: string;
|
25
|
+
index: number;
|
26
|
+
}[];
|
27
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
export declare enum MeetingAPIResponses {
|
2
|
+
FAILED = "FAILED",
|
3
|
+
SUCCESS = "SUCCESS",
|
4
|
+
TOO_EARLY = "TOO_EARLY",
|
5
|
+
FORBIDDEN = "FORBIDDEN"
|
6
|
+
}
|
7
|
+
export interface HostJoinData {
|
8
|
+
start_url: string;
|
9
|
+
}
|
10
|
+
export interface CustomerJoinData {
|
11
|
+
join_url: string;
|
12
|
+
}
|
13
|
+
export interface HostJoinResponse {
|
14
|
+
res: MeetingAPIResponses;
|
15
|
+
data: HostJoinData;
|
16
|
+
}
|
17
|
+
export interface CustomerJoinResponse {
|
18
|
+
res: MeetingAPIResponses;
|
19
|
+
data: HostJoinData;
|
20
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.MeetingAPIResponses = void 0;
|
4
|
+
var MeetingAPIResponses;
|
5
|
+
(function (MeetingAPIResponses) {
|
6
|
+
MeetingAPIResponses["FAILED"] = "FAILED";
|
7
|
+
MeetingAPIResponses["SUCCESS"] = "SUCCESS";
|
8
|
+
MeetingAPIResponses["TOO_EARLY"] = "TOO_EARLY";
|
9
|
+
MeetingAPIResponses["FORBIDDEN"] = "FORBIDDEN";
|
10
|
+
})(MeetingAPIResponses = exports.MeetingAPIResponses || (exports.MeetingAPIResponses = {}));
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { EventTypes } from "@jealous-robot-dev/drophr-common";
|
2
|
+
export interface MessengerEventShortcut {
|
3
|
+
id: string;
|
4
|
+
pic: string;
|
5
|
+
name: string;
|
6
|
+
rate: number;
|
7
|
+
mention: string;
|
8
|
+
type: EventTypes;
|
9
|
+
is_saved: boolean;
|
10
|
+
can_view: boolean;
|
11
|
+
reviews: number;
|
12
|
+
sessions: {
|
13
|
+
sid: string;
|
14
|
+
duration: number;
|
15
|
+
starts_at: number;
|
16
|
+
}[];
|
17
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { EventInSearch } from './event-search';
|
2
|
+
export interface TagExplorationStats {
|
3
|
+
times_viewed: number;
|
4
|
+
mentioned: number;
|
5
|
+
}
|
6
|
+
export interface TagSearchResponse {
|
7
|
+
entries: EventInSearch[];
|
8
|
+
nnm: boolean;
|
9
|
+
page: number;
|
10
|
+
}
|
11
|
+
export interface NoEventsFound extends TagSearchResponse {
|
12
|
+
similar_tags: string[];
|
13
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { EventTypes } from "@jealous-robot-dev/drophr-common";
|
2
|
+
export declare enum URGENT_EVENT_TYPE {
|
3
|
+
EVENT_TO_HOST = "event to host",
|
4
|
+
EVENT_TO_VISIT = "event to visit"
|
5
|
+
}
|
6
|
+
export interface UrgentEvent {
|
7
|
+
event_id: string;
|
8
|
+
sid: string;
|
9
|
+
type: URGENT_EVENT_TYPE;
|
10
|
+
}
|
11
|
+
export interface UrgentEventData {
|
12
|
+
name: string;
|
13
|
+
lang: string;
|
14
|
+
type: EventTypes;
|
15
|
+
duration: number;
|
16
|
+
pic: string;
|
17
|
+
sid: string;
|
18
|
+
can_join: boolean;
|
19
|
+
starts_at: number;
|
20
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.URGENT_EVENT_TYPE = void 0;
|
4
|
+
var URGENT_EVENT_TYPE;
|
5
|
+
(function (URGENT_EVENT_TYPE) {
|
6
|
+
URGENT_EVENT_TYPE["EVENT_TO_HOST"] = "event to host";
|
7
|
+
URGENT_EVENT_TYPE["EVENT_TO_VISIT"] = "event to visit";
|
8
|
+
})(URGENT_EVENT_TYPE = exports.URGENT_EVENT_TYPE || (exports.URGENT_EVENT_TYPE = {}));
|
@@ -0,0 +1,43 @@
|
|
1
|
+
import { AuthenticationProviders, DropHRUserAgents, UserDevice } from '@jealous-robot-dev/drophr-common';
|
2
|
+
export interface ShortAuthFormData {
|
3
|
+
UID: string;
|
4
|
+
email: string;
|
5
|
+
ppu: string;
|
6
|
+
firstname: string;
|
7
|
+
auth_provider: AuthenticationProviders;
|
8
|
+
}
|
9
|
+
export interface AuthFormData {
|
10
|
+
prev_session?: ShortAuthFormData;
|
11
|
+
}
|
12
|
+
export interface AuthenticationDevice {
|
13
|
+
platform: {
|
14
|
+
name: string;
|
15
|
+
version: string;
|
16
|
+
};
|
17
|
+
browser?: {
|
18
|
+
name: string;
|
19
|
+
version: string;
|
20
|
+
};
|
21
|
+
viewport?: {
|
22
|
+
w: number;
|
23
|
+
h: number;
|
24
|
+
};
|
25
|
+
userAgent: string;
|
26
|
+
agentType: UserDevice;
|
27
|
+
DropHRUserAgent: DropHRUserAgents;
|
28
|
+
}
|
29
|
+
export declare enum PositiveAuthResponse {
|
30
|
+
NEW_USER = "NEW_USER",
|
31
|
+
TWO_FACTOR = "TWO_FACTOR",
|
32
|
+
WELCOME_BACK = "WELCOME_BACK",
|
33
|
+
VERIFY_DEVICE = "VERIFY_DEVICE",
|
34
|
+
VERIFY_EMAIL = "VERIFY_EMAIL",
|
35
|
+
PASS = "PASS"
|
36
|
+
}
|
37
|
+
export declare enum DeviceVerificationResults {
|
38
|
+
INVALID = "INVALID",
|
39
|
+
EXPIRED = "EXPIRED",
|
40
|
+
CORRECT = "CORRECT",
|
41
|
+
NOT_FOUND = "NOT_FOUND",
|
42
|
+
NO_MORE_ATTEMPTS = "NO_MORE_ATTEMPTS"
|
43
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.DeviceVerificationResults = exports.PositiveAuthResponse = void 0;
|
4
|
+
var PositiveAuthResponse;
|
5
|
+
(function (PositiveAuthResponse) {
|
6
|
+
PositiveAuthResponse["NEW_USER"] = "NEW_USER";
|
7
|
+
PositiveAuthResponse["TWO_FACTOR"] = "TWO_FACTOR";
|
8
|
+
PositiveAuthResponse["WELCOME_BACK"] = "WELCOME_BACK";
|
9
|
+
PositiveAuthResponse["VERIFY_DEVICE"] = "VERIFY_DEVICE";
|
10
|
+
PositiveAuthResponse["VERIFY_EMAIL"] = "VERIFY_EMAIL";
|
11
|
+
PositiveAuthResponse["PASS"] = "PASS";
|
12
|
+
})(PositiveAuthResponse = exports.PositiveAuthResponse || (exports.PositiveAuthResponse = {}));
|
13
|
+
var DeviceVerificationResults;
|
14
|
+
(function (DeviceVerificationResults) {
|
15
|
+
DeviceVerificationResults["INVALID"] = "INVALID";
|
16
|
+
DeviceVerificationResults["EXPIRED"] = "EXPIRED";
|
17
|
+
DeviceVerificationResults["CORRECT"] = "CORRECT";
|
18
|
+
DeviceVerificationResults["NOT_FOUND"] = "NOT_FOUND";
|
19
|
+
DeviceVerificationResults["NO_MORE_ATTEMPTS"] = "NO_MORE_ATTEMPTS";
|
20
|
+
})(DeviceVerificationResults = exports.DeviceVerificationResults || (exports.DeviceVerificationResults = {}));
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './authentication';
|
@@ -0,0 +1,13 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
5
|
+
}) : (function(o, m, k, k2) {
|
6
|
+
if (k2 === undefined) k2 = k;
|
7
|
+
o[k2] = m[k];
|
8
|
+
}));
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
10
|
+
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
|
11
|
+
};
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
13
|
+
__exportStar(require("./authentication"), exports);
|
@@ -0,0 +1,50 @@
|
|
1
|
+
import { EventTypes } from "@jealous-robot-dev/drophr-common";
|
2
|
+
export declare enum LangdingPageSections {
|
3
|
+
BG_IMG = "BG_IMG",
|
4
|
+
DISOVER_EVENTS = "DISOVER_EVENTS",
|
5
|
+
BECOME_A_HOST = "BECOME_A_HOST",
|
6
|
+
ABOUT_US = "ABOUT_US",
|
7
|
+
OPPORTUNITIES = "OPPORTUNITIES"
|
8
|
+
}
|
9
|
+
export interface LPBg {
|
10
|
+
main_view_path: string;
|
11
|
+
}
|
12
|
+
export interface Opportunity {
|
13
|
+
label: string;
|
14
|
+
description: string;
|
15
|
+
picture_path: string;
|
16
|
+
index: number;
|
17
|
+
}
|
18
|
+
export interface LPBecomeHost {
|
19
|
+
title: string;
|
20
|
+
description: string;
|
21
|
+
learn_more: string;
|
22
|
+
img_path: string;
|
23
|
+
}
|
24
|
+
export interface LPDiscoverEvents {
|
25
|
+
title: string;
|
26
|
+
events: {
|
27
|
+
type: EventTypes;
|
28
|
+
label: string;
|
29
|
+
}[];
|
30
|
+
}
|
31
|
+
export interface LPAboutUs {
|
32
|
+
title: string;
|
33
|
+
description: string;
|
34
|
+
}
|
35
|
+
export interface LPOpportunities {
|
36
|
+
title: string;
|
37
|
+
categories: {
|
38
|
+
anywhere_anytime: Opportunity;
|
39
|
+
different_activities: Opportunity;
|
40
|
+
connect_with_people: Opportunity;
|
41
|
+
};
|
42
|
+
}
|
43
|
+
export interface LandingPageData {
|
44
|
+
static_content_path: string;
|
45
|
+
sections: LangdingPageSections[];
|
46
|
+
}
|
47
|
+
export interface LPVitalData {
|
48
|
+
data: LandingPageData;
|
49
|
+
bg: LPBg;
|
50
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.LangdingPageSections = void 0;
|
4
|
+
var LangdingPageSections;
|
5
|
+
(function (LangdingPageSections) {
|
6
|
+
LangdingPageSections["BG_IMG"] = "BG_IMG";
|
7
|
+
LangdingPageSections["DISOVER_EVENTS"] = "DISOVER_EVENTS";
|
8
|
+
LangdingPageSections["BECOME_A_HOST"] = "BECOME_A_HOST";
|
9
|
+
LangdingPageSections["ABOUT_US"] = "ABOUT_US";
|
10
|
+
LangdingPageSections["OPPORTUNITIES"] = "OPPORTUNITIES";
|
11
|
+
})(LangdingPageSections = exports.LangdingPageSections || (exports.LangdingPageSections = {}));
|
@@ -0,0 +1,58 @@
|
|
1
|
+
import { LiveRoomClientMessages, LiveRoomMediaType } from "@jealous-robot-dev/drophr-common";
|
2
|
+
export interface LiveRoomClientMinimumPayload {
|
3
|
+
sid: string;
|
4
|
+
UID: string;
|
5
|
+
event_id?: string;
|
6
|
+
}
|
7
|
+
export interface LiveRoomClientAttendeeMinumumPayload extends LiveRoomClientMinimumPayload {
|
8
|
+
attendee_id: string;
|
9
|
+
}
|
10
|
+
export interface LiveRoomClientTargetAttendeePayload extends LiveRoomClientAttendeeMinumumPayload {
|
11
|
+
target_attendee_id: string;
|
12
|
+
}
|
13
|
+
export interface LiveRoomClientClientEntered extends LiveRoomClientMinimumPayload {
|
14
|
+
}
|
15
|
+
export interface LiveRoomClientClientLeft extends LiveRoomClientAttendeeMinumumPayload {
|
16
|
+
}
|
17
|
+
export interface LiveRoomClientClientPing extends LiveRoomClientAttendeeMinumumPayload {
|
18
|
+
}
|
19
|
+
export interface LiveRoomClientSessionStarted extends LiveRoomClientAttendeeMinumumPayload {
|
20
|
+
}
|
21
|
+
export interface LiveRoomClientSessionEnded extends LiveRoomClientAttendeeMinumumPayload {
|
22
|
+
}
|
23
|
+
export interface LiveRoomClientMediaShareStarted extends LiveRoomClientAttendeeMinumumPayload {
|
24
|
+
type: LiveRoomMediaType;
|
25
|
+
}
|
26
|
+
export interface LiveRoomClientMediaShareStoped extends LiveRoomClientAttendeeMinumumPayload {
|
27
|
+
type: LiveRoomMediaType;
|
28
|
+
}
|
29
|
+
export interface LiveRoomClientMediaShareStop extends LiveRoomClientTargetAttendeePayload {
|
30
|
+
type: LiveRoomMediaType;
|
31
|
+
}
|
32
|
+
export interface LiveRoomClientMicConnStateUpdated extends LiveRoomClientAttendeeMinumumPayload {
|
33
|
+
is_on: boolean;
|
34
|
+
}
|
35
|
+
export interface LiveRoomClientChatMsgView extends LiveRoomClientAttendeeMinumumPayload {
|
36
|
+
thread_id: string;
|
37
|
+
messages: number[];
|
38
|
+
}
|
39
|
+
export interface LiveRoomClientChatMsgEdit extends LiveRoomClientAttendeeMinumumPayload {
|
40
|
+
thread_id: string;
|
41
|
+
msg_id: number;
|
42
|
+
text: string;
|
43
|
+
}
|
44
|
+
export interface LiveRoomClientChatMsgDelete extends LiveRoomClientAttendeeMinumumPayload {
|
45
|
+
thread_id: string;
|
46
|
+
msg_id: number;
|
47
|
+
}
|
48
|
+
export interface LiveRoomClientChatMsgNew extends LiveRoomClientAttendeeMinumumPayload {
|
49
|
+
receiver?: string;
|
50
|
+
thread_id: string;
|
51
|
+
msg_id: number;
|
52
|
+
text: string;
|
53
|
+
}
|
54
|
+
export declare type LiveRoomClientMessageType = LiveRoomClientChatMsgView | LiveRoomClientMicConnStateUpdated | LiveRoomClientSessionStarted | LiveRoomClientClientEntered | LiveRoomClientChatMsgNew | LiveRoomClientChatMsgDelete | LiveRoomClientClientLeft | LiveRoomClientClientEntered | LiveRoomClientChatMsgEdit | LiveRoomClientSessionEnded;
|
55
|
+
export interface LiveRoomClientMessage {
|
56
|
+
channel: LiveRoomClientMessages;
|
57
|
+
payload: LiveRoomClientMessageType;
|
58
|
+
}
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";
|
@@ -0,0 +1,63 @@
|
|
1
|
+
import { UITHEME, LiveRoomParticipRole, LiveRoomUIParams, EventTypes, LiveChannelParticipantRole } from "@jealous-robot-dev/drophr-common";
|
2
|
+
export interface LiveRoomStandartSessionResponse {
|
3
|
+
listing: {
|
4
|
+
id: string;
|
5
|
+
pic: string;
|
6
|
+
lang: string;
|
7
|
+
name: string;
|
8
|
+
host: string;
|
9
|
+
type: EventTypes;
|
10
|
+
session: {
|
11
|
+
sid: string;
|
12
|
+
end: number;
|
13
|
+
start: number;
|
14
|
+
duration: number;
|
15
|
+
max_particips: number;
|
16
|
+
};
|
17
|
+
};
|
18
|
+
connection: {
|
19
|
+
signature: string;
|
20
|
+
tracking_frequency?: number;
|
21
|
+
};
|
22
|
+
client: {
|
23
|
+
UID: string;
|
24
|
+
ppu: string;
|
25
|
+
is_new: boolean;
|
26
|
+
username: string;
|
27
|
+
role: LiveRoomParticipRole;
|
28
|
+
};
|
29
|
+
prefs: {
|
30
|
+
theme: UITHEME;
|
31
|
+
sdk_locale: string;
|
32
|
+
user_locale: string;
|
33
|
+
ui: {
|
34
|
+
[LiveRoomUIParams.FULL_SCREEN_X]: boolean;
|
35
|
+
[LiveRoomUIParams.HIDE_PREVIEW]: boolean;
|
36
|
+
[LiveRoomUIParams.HIDE_SPEAKER]: boolean;
|
37
|
+
[LiveRoomUIParams.GRID_LAYOUT]: boolean;
|
38
|
+
[LiveRoomUIParams.HIDE_ARROWS]: boolean;
|
39
|
+
[LiveRoomUIParams.HIDE_SHARE]: boolean;
|
40
|
+
[LiveRoomUIParams.HIDE_MAP]: boolean;
|
41
|
+
};
|
42
|
+
};
|
43
|
+
}
|
44
|
+
export interface LiveChannelTrackingMessagePayload {
|
45
|
+
ts: string;
|
46
|
+
video_enabled: boolean;
|
47
|
+
audio_enabled: boolean;
|
48
|
+
sound_enabled: boolean;
|
49
|
+
screen_enabled: boolean;
|
50
|
+
latest_interaction: number;
|
51
|
+
}
|
52
|
+
export declare enum LiveChannelTrackingResponseTypes {
|
53
|
+
OK = "OK",
|
54
|
+
ABOUT_TO_END = "ABOUT_TO_END",
|
55
|
+
CHECK_PRESENCE = "CHECK_PRESENCE",
|
56
|
+
HOST_CONN_TROUBLES = "HOST_CONN_TROUBLES",
|
57
|
+
HOST_LEFT_PREMATURELY = "HOST_LEFT_PREMATURELY",
|
58
|
+
CUSTOMER_CONN_TROUBLES = "CUSTOMER_CONN_TROUBLES"
|
59
|
+
}
|
60
|
+
export interface LiveChannelTrackingResponse {
|
61
|
+
result: LiveChannelTrackingResponseTypes;
|
62
|
+
role: LiveChannelParticipantRole;
|
63
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.LiveChannelTrackingResponseTypes = void 0;
|
4
|
+
var drophr_common_1 = require("@jealous-robot-dev/drophr-common");
|
5
|
+
var LiveChannelTrackingResponseTypes;
|
6
|
+
(function (LiveChannelTrackingResponseTypes) {
|
7
|
+
LiveChannelTrackingResponseTypes["OK"] = "OK";
|
8
|
+
LiveChannelTrackingResponseTypes["ABOUT_TO_END"] = "ABOUT_TO_END";
|
9
|
+
LiveChannelTrackingResponseTypes["CHECK_PRESENCE"] = "CHECK_PRESENCE";
|
10
|
+
LiveChannelTrackingResponseTypes["HOST_CONN_TROUBLES"] = "HOST_CONN_TROUBLES";
|
11
|
+
LiveChannelTrackingResponseTypes["HOST_LEFT_PREMATURELY"] = "HOST_LEFT_PREMATURELY";
|
12
|
+
LiveChannelTrackingResponseTypes["CUSTOMER_CONN_TROUBLES"] = "CUSTOMER_CONN_TROUBLES";
|
13
|
+
})(LiveChannelTrackingResponseTypes = exports.LiveChannelTrackingResponseTypes || (exports.LiveChannelTrackingResponseTypes = {}));
|
@@ -0,0 +1,16 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
5
|
+
}) : (function(o, m, k, k2) {
|
6
|
+
if (k2 === undefined) k2 = k;
|
7
|
+
o[k2] = m[k];
|
8
|
+
}));
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
10
|
+
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
|
11
|
+
};
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
13
|
+
__exportStar(require("./client"), exports);
|
14
|
+
__exportStar(require("./server"), exports);
|
15
|
+
__exportStar(require("./upload"), exports);
|
16
|
+
__exportStar(require("./fallback"), exports);
|
@@ -0,0 +1,143 @@
|
|
1
|
+
import { LiveRoomClientCloseReason, LiveRoomSessionTypes, LiveRoomServerMessages, LiveRoomMediaType } from "@jealous-robot-dev/drophr-common";
|
2
|
+
import { MessengerMedia } from "../messenger";
|
3
|
+
export interface LiveRoomStandartParticipant {
|
4
|
+
UID: string;
|
5
|
+
ppu: string;
|
6
|
+
names: {
|
7
|
+
first: string;
|
8
|
+
last: string;
|
9
|
+
};
|
10
|
+
is_host: boolean;
|
11
|
+
device_id: string;
|
12
|
+
is_current: boolean;
|
13
|
+
gold_badge: boolean;
|
14
|
+
attendee_id: string;
|
15
|
+
is_video_on: boolean;
|
16
|
+
is_audio_on: boolean;
|
17
|
+
is_share_on: boolean;
|
18
|
+
is_connected: boolean;
|
19
|
+
}
|
20
|
+
export interface LiveRoomPossibleParticipant {
|
21
|
+
UID: string;
|
22
|
+
ppu: string;
|
23
|
+
names: {
|
24
|
+
first: string;
|
25
|
+
last: string;
|
26
|
+
};
|
27
|
+
is_host: boolean;
|
28
|
+
gold_badge: boolean;
|
29
|
+
}
|
30
|
+
export interface LiveRoomChatMessage {
|
31
|
+
id: number;
|
32
|
+
text?: string;
|
33
|
+
author: string;
|
34
|
+
is_err?: boolean;
|
35
|
+
unseen?: boolean;
|
36
|
+
attachment?: MessengerMedia;
|
37
|
+
}
|
38
|
+
export interface LiveRoomConversationThread {
|
39
|
+
id: string;
|
40
|
+
index: number;
|
41
|
+
participants: string[];
|
42
|
+
messages: LiveRoomChatMessage[];
|
43
|
+
}
|
44
|
+
export interface LiveRoomSessionDetails {
|
45
|
+
possible_participants: LiveRoomPossibleParticipant[];
|
46
|
+
session: {
|
47
|
+
sid: string;
|
48
|
+
start: number;
|
49
|
+
duration: number;
|
50
|
+
ending_deadline: number;
|
51
|
+
type: LiveRoomSessionTypes;
|
52
|
+
is_special: boolean;
|
53
|
+
event_id?: string;
|
54
|
+
};
|
55
|
+
}
|
56
|
+
export interface LiveRoomServerMinimumPayload {
|
57
|
+
ts: number;
|
58
|
+
sid: string;
|
59
|
+
}
|
60
|
+
export interface LiveRoomServerClientEntered extends LiveRoomServerMinimumPayload {
|
61
|
+
UID: string;
|
62
|
+
ppu: string;
|
63
|
+
is_host: boolean;
|
64
|
+
device_id: string;
|
65
|
+
gold_badge: boolean;
|
66
|
+
names: {
|
67
|
+
first: string;
|
68
|
+
last: string;
|
69
|
+
};
|
70
|
+
attendee_id: string;
|
71
|
+
}
|
72
|
+
export interface LiveRoomServerClientClose extends LiveRoomServerMinimumPayload {
|
73
|
+
UID: string;
|
74
|
+
device_id: string;
|
75
|
+
attendee_id?: string;
|
76
|
+
reason: LiveRoomClientCloseReason;
|
77
|
+
}
|
78
|
+
export interface LiveRoomServerClientLeft extends LiveRoomServerMinimumPayload {
|
79
|
+
UID: string;
|
80
|
+
attendee_id: string;
|
81
|
+
}
|
82
|
+
export interface LiveRoomServerClientPing extends LiveRoomServerMinimumPayload {
|
83
|
+
UID: string;
|
84
|
+
device_id: string;
|
85
|
+
attendee_id: string;
|
86
|
+
}
|
87
|
+
export interface LiveRoomServerSessionEnded extends LiveRoomServerMinimumPayload {
|
88
|
+
}
|
89
|
+
export interface LiveRoomServerSessionState extends LiveRoomServerMinimumPayload {
|
90
|
+
receiver: string;
|
91
|
+
session: LiveRoomSessionDetails;
|
92
|
+
threads: LiveRoomConversationThread[];
|
93
|
+
participants: LiveRoomStandartParticipant[];
|
94
|
+
}
|
95
|
+
export interface LiveRoomServerMediaPayload extends LiveRoomServerMinimumPayload {
|
96
|
+
UID: string;
|
97
|
+
attendee_id: string;
|
98
|
+
type: LiveRoomMediaType;
|
99
|
+
}
|
100
|
+
export interface LiveRoomServerTargetedMediaPayload extends LiveRoomServerMediaPayload {
|
101
|
+
target_attendee_id: string;
|
102
|
+
}
|
103
|
+
export interface LiveRoomServerMediaShareStarted extends LiveRoomServerMediaPayload {
|
104
|
+
}
|
105
|
+
export interface LiveRoomServerMediaShareStoped extends LiveRoomServerMediaPayload {
|
106
|
+
}
|
107
|
+
export interface LiveRoomServerMediaShareStop extends LiveRoomServerTargetedMediaPayload {
|
108
|
+
}
|
109
|
+
export interface LiveRoomServerMicConnStateUpdated extends LiveRoomServerMinimumPayload {
|
110
|
+
UID: string;
|
111
|
+
is_on: boolean;
|
112
|
+
attendee_id: string;
|
113
|
+
}
|
114
|
+
export interface LiveRoomServerChatMessageNew extends LiveRoomServerMinimumPayload {
|
115
|
+
audience: string[];
|
116
|
+
receiver?: string;
|
117
|
+
author: string;
|
118
|
+
thread_id: string;
|
119
|
+
msg_id: number;
|
120
|
+
text?: string;
|
121
|
+
attachment?: MessengerMedia;
|
122
|
+
}
|
123
|
+
export interface LiveRoomServerChatMessageEdited extends LiveRoomServerMinimumPayload {
|
124
|
+
audience: string[];
|
125
|
+
thread_id: string;
|
126
|
+
msg_id: number;
|
127
|
+
text: string;
|
128
|
+
}
|
129
|
+
export interface LiveRoomServerChatMessageDel extends LiveRoomServerMinimumPayload {
|
130
|
+
audience: string[];
|
131
|
+
thread_id: string;
|
132
|
+
msg_id: number;
|
133
|
+
}
|
134
|
+
export interface LiveRoomServerChatMsgView extends LiveRoomServerMinimumPayload {
|
135
|
+
audience: string[];
|
136
|
+
messages: number[];
|
137
|
+
thread_id: string;
|
138
|
+
}
|
139
|
+
export declare type LiveRoomServerMessageType = LiveRoomServerChatMessageEdited | LiveRoomServerChatMessageNew | LiveRoomServerSessionState | LiveRoomServerClientEntered | LiveRoomServerChatMsgView | LiveRoomServerChatMessageDel | LiveRoomServerSessionEnded | LiveRoomServerClientPing | LiveRoomServerClientLeft | LiveRoomServerClientClose | LiveRoomServerMicConnStateUpdated;
|
140
|
+
export interface LiveRoomServerMessage {
|
141
|
+
channel: LiveRoomServerMessages;
|
142
|
+
payload: LiveRoomServerMessageType;
|
143
|
+
}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
import { UITHEME, TextDirection, DropHRUserAgents, AuthenticationProviders, Currency, Locale, DropWebEnv, Pages } from '@jealous-robot-dev/drophr-common';
|
2
|
+
import { MainPhrases } from '@jealous-robot-dev/shared-phrases';
|
3
|
+
import { QueryResponse } from './common';
|
4
|
+
import { UrgentEvent } from '..';
|
5
|
+
export interface MainUserData {
|
6
|
+
UID: string;
|
7
|
+
email: string;
|
8
|
+
username: string;
|
9
|
+
firstname: string;
|
10
|
+
lastname: string;
|
11
|
+
ppu: string;
|
12
|
+
is_admin: boolean;
|
13
|
+
DAU_report?: boolean;
|
14
|
+
member_since: number;
|
15
|
+
unread_messages_count: number;
|
16
|
+
auth_instrument: AuthenticationProviders;
|
17
|
+
new_notifications_count: number;
|
18
|
+
impression_for?: string;
|
19
|
+
is_organiser: boolean;
|
20
|
+
urgent_event?: UrgentEvent;
|
21
|
+
}
|
22
|
+
export interface API {
|
23
|
+
googleOAuthClient: string;
|
24
|
+
fbAuthClient: string;
|
25
|
+
}
|
26
|
+
export interface CommonData {
|
27
|
+
currentUser: MainUserData | null;
|
28
|
+
no_consent?: boolean;
|
29
|
+
device_id: string | null;
|
30
|
+
agent: DropHRUserAgents;
|
31
|
+
country: string;
|
32
|
+
region: string;
|
33
|
+
session: {
|
34
|
+
token: string;
|
35
|
+
expires_at: string;
|
36
|
+
};
|
37
|
+
page: Pages;
|
38
|
+
dropWebEnv: DropWebEnv;
|
39
|
+
direction: TextDirection;
|
40
|
+
API: API;
|
41
|
+
preferences: {
|
42
|
+
locale: Locale;
|
43
|
+
currency: Currency;
|
44
|
+
theme: UITHEME;
|
45
|
+
};
|
46
|
+
}
|
47
|
+
export interface MainDataResponse extends QueryResponse<CommonData, MainPhrases> {
|
48
|
+
}
|