@jealous-robot-dev/shared-types-responses 1.43.3 → 1.43.4
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 +5 -4
- package/build/index.js +5 -4
- package/build/services/live-room/client.d.ts +68 -0
- package/build/services/live-room/client.js +2 -0
- package/build/services/live-room/index.d.ts +2 -0
- package/build/services/live-room/index.js +14 -0
- package/build/services/live-room/server.d.ts +153 -0
- package/build/services/live-room/server.js +2 -0
- package/package.json +2 -2
package/build/index.d.ts
CHANGED
@@ -1,13 +1,14 @@
|
|
1
|
+
export * from './services/permissions';
|
1
2
|
export * from './services/errors';
|
2
3
|
export * from './services/common';
|
3
|
-
export * from './services/
|
4
|
+
export * from './services/static-components';
|
4
5
|
export * from './services/user-settings';
|
5
|
-
export * from './services/
|
6
|
+
export * from './services/live-room';
|
6
7
|
export * from './services/messenger';
|
8
|
+
export * from './services/payments';
|
7
9
|
export * from './services/events';
|
8
10
|
export * from './services/stats';
|
9
|
-
export * from './services/static-components';
|
10
|
-
export * from './services/user';
|
11
11
|
export * from './services/forms';
|
12
|
+
export * from './services/user';
|
12
13
|
export * from './services/landing-page';
|
13
14
|
export * from './services/main-data';
|
package/build/index.js
CHANGED
@@ -10,16 +10,17 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
10
|
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
|
11
11
|
};
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
13
|
+
__exportStar(require("./services/permissions"), exports);
|
13
14
|
__exportStar(require("./services/errors"), exports);
|
14
15
|
__exportStar(require("./services/common"), exports);
|
15
|
-
__exportStar(require("./services/
|
16
|
+
__exportStar(require("./services/static-components"), exports);
|
16
17
|
__exportStar(require("./services/user-settings"), exports);
|
17
|
-
__exportStar(require("./services/
|
18
|
+
__exportStar(require("./services/live-room"), exports);
|
18
19
|
__exportStar(require("./services/messenger"), exports);
|
20
|
+
__exportStar(require("./services/payments"), exports);
|
19
21
|
__exportStar(require("./services/events"), exports);
|
20
22
|
__exportStar(require("./services/stats"), exports);
|
21
|
-
__exportStar(require("./services/static-components"), exports);
|
22
|
-
__exportStar(require("./services/user"), exports);
|
23
23
|
__exportStar(require("./services/forms"), exports);
|
24
|
+
__exportStar(require("./services/user"), exports);
|
24
25
|
__exportStar(require("./services/landing-page"), exports);
|
25
26
|
__exportStar(require("./services/main-data"), exports);
|
@@ -0,0 +1,68 @@
|
|
1
|
+
import { LiveRoomClientMessages } 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 LiveRoomClientScreenShareStarted extends LiveRoomClientAttendeeMinumumPayload {
|
24
|
+
}
|
25
|
+
export interface LiveRoomClientScreenShareStoped extends LiveRoomClientAttendeeMinumumPayload {
|
26
|
+
}
|
27
|
+
export interface LiveRoomClientScreenShareStop extends LiveRoomClientTargetAttendeePayload {
|
28
|
+
}
|
29
|
+
export interface LiveRoomClientVideoShareStarted extends LiveRoomClientAttendeeMinumumPayload {
|
30
|
+
}
|
31
|
+
export interface LiveRoomClientVideoShareStoped extends LiveRoomClientAttendeeMinumumPayload {
|
32
|
+
}
|
33
|
+
export interface LiveRoomClientVideoShareStop extends LiveRoomClientTargetAttendeePayload {
|
34
|
+
}
|
35
|
+
export interface LiveRoomClientAudioShareStarted extends LiveRoomClientAttendeeMinumumPayload {
|
36
|
+
}
|
37
|
+
export interface LiveRoomClientAudioShareStoped extends LiveRoomClientAttendeeMinumumPayload {
|
38
|
+
}
|
39
|
+
export interface LiveRoomClientAudioShareStop extends LiveRoomClientTargetAttendeePayload {
|
40
|
+
}
|
41
|
+
export interface LiveRoomClientMicrophoneDisconnection extends LiveRoomClientAttendeeMinumumPayload {
|
42
|
+
}
|
43
|
+
export interface LiveRoomClientMicrophoneConnection extends LiveRoomClientAttendeeMinumumPayload {
|
44
|
+
}
|
45
|
+
export interface LiveRoomClientChatMsgView extends LiveRoomClientAttendeeMinumumPayload {
|
46
|
+
thread_id: string;
|
47
|
+
messages: number[];
|
48
|
+
}
|
49
|
+
export interface LiveRoomClientChatMsgEdit extends LiveRoomClientAttendeeMinumumPayload {
|
50
|
+
thread_id: string;
|
51
|
+
msg_id: number;
|
52
|
+
text: string;
|
53
|
+
}
|
54
|
+
export interface LiveRoomClientChatMsgDelete extends LiveRoomClientAttendeeMinumumPayload {
|
55
|
+
thread_id: string;
|
56
|
+
msg_id: number;
|
57
|
+
}
|
58
|
+
export interface LiveRoomClientChatMsgNew extends LiveRoomClientAttendeeMinumumPayload {
|
59
|
+
receiver: string;
|
60
|
+
thread_id: string;
|
61
|
+
msg_id: number;
|
62
|
+
text: string;
|
63
|
+
}
|
64
|
+
export declare type LiveRoomClientMessageType = LiveRoomClientMicrophoneConnection | LiveRoomClientMicrophoneDisconnection | LiveRoomClientVideoShareStoped | LiveRoomClientVideoShareStarted | LiveRoomClientScreenShareStop | LiveRoomClientScreenShareStoped | LiveRoomClientScreenShareStarted | LiveRoomClientSessionEnded | LiveRoomClientAudioShareStoped | LiveRoomClientVideoShareStop | LiveRoomClientAudioShareStoped | LiveRoomClientVideoShareStop | LiveRoomClientSessionStarted | LiveRoomClientClientEntered | LiveRoomClientChatMsgNew | LiveRoomClientChatMsgDelete | LiveRoomClientClientLeft | LiveRoomClientClientEntered | LiveRoomClientChatMsgEdit | LiveRoomClientChatMsgView;
|
65
|
+
export interface LiveRoomClientMessage {
|
66
|
+
channel: LiveRoomClientMessages;
|
67
|
+
payload: LiveRoomClientMessageType;
|
68
|
+
}
|
@@ -0,0 +1,14 @@
|
|
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);
|
@@ -0,0 +1,153 @@
|
|
1
|
+
import { LiveRoomClientCloseReason, LiveRoomSessionTypes, LiveRoomServerMessages } from "@jealous-robot-dev/drophr-common";
|
2
|
+
export interface LiveRoomStandartParticipant {
|
3
|
+
UID: string;
|
4
|
+
ppu: string;
|
5
|
+
names: {
|
6
|
+
first: string;
|
7
|
+
last: string;
|
8
|
+
};
|
9
|
+
is_host: boolean;
|
10
|
+
device_id: string;
|
11
|
+
gold_badge: boolean;
|
12
|
+
attendee_id: string;
|
13
|
+
is_video_on: boolean;
|
14
|
+
is_audio_on: boolean;
|
15
|
+
is_share_on: boolean;
|
16
|
+
is_connected: boolean;
|
17
|
+
}
|
18
|
+
export interface LiveRoomPossibleParticipant {
|
19
|
+
UID: string;
|
20
|
+
ppu: string;
|
21
|
+
names: {
|
22
|
+
first: string;
|
23
|
+
last: string;
|
24
|
+
};
|
25
|
+
is_host: boolean;
|
26
|
+
gold_badge: boolean;
|
27
|
+
}
|
28
|
+
export interface LiveRoomChatMessage {
|
29
|
+
id: number;
|
30
|
+
text?: string;
|
31
|
+
author: string;
|
32
|
+
unseen?: boolean;
|
33
|
+
attahment?: {
|
34
|
+
id: string;
|
35
|
+
extension: string;
|
36
|
+
displayName: string;
|
37
|
+
};
|
38
|
+
}
|
39
|
+
export interface LiveRoomConversationThread {
|
40
|
+
id: string;
|
41
|
+
index: number;
|
42
|
+
participants: string[];
|
43
|
+
messages: LiveRoomChatMessage[];
|
44
|
+
}
|
45
|
+
export interface LiveRoomSessionDetails {
|
46
|
+
possible_participants: LiveRoomPossibleParticipant[];
|
47
|
+
session: {
|
48
|
+
sid: string;
|
49
|
+
start: number;
|
50
|
+
duration: number;
|
51
|
+
ending_deadline: number;
|
52
|
+
type: LiveRoomSessionTypes;
|
53
|
+
is_special: boolean;
|
54
|
+
event_id?: string;
|
55
|
+
};
|
56
|
+
}
|
57
|
+
export interface LiveRoomServerMinimumPayload {
|
58
|
+
ts: number;
|
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
|
+
sid: string;
|
89
|
+
}
|
90
|
+
export interface LiveRoomServerSessionState extends LiveRoomServerMinimumPayload {
|
91
|
+
session: LiveRoomSessionDetails;
|
92
|
+
threads: LiveRoomConversationThread[];
|
93
|
+
participants: LiveRoomStandartParticipant[];
|
94
|
+
}
|
95
|
+
export interface LiveRoomServerMediaPayload extends LiveRoomServerMinimumPayload {
|
96
|
+
UID: string;
|
97
|
+
attendee_id: string;
|
98
|
+
}
|
99
|
+
export interface LiveRoomServerTargetedMediaPayload extends LiveRoomServerMediaPayload {
|
100
|
+
target_attendee_id: string;
|
101
|
+
}
|
102
|
+
export interface LiveRoomServerScreenShareStarted extends LiveRoomServerMediaPayload {
|
103
|
+
}
|
104
|
+
export interface LiveRoomServerScreenShareStoped extends LiveRoomServerMediaPayload {
|
105
|
+
}
|
106
|
+
export interface LiveRoomServerScreenShareStop extends LiveRoomServerTargetedMediaPayload {
|
107
|
+
}
|
108
|
+
export interface LiveRoomServerVideoShareStarted extends LiveRoomServerMediaPayload {
|
109
|
+
}
|
110
|
+
export interface LiveRoomServerVideoShareStoped extends LiveRoomServerMediaPayload {
|
111
|
+
}
|
112
|
+
export interface LiveRoomServerVideoShareStop extends LiveRoomServerTargetedMediaPayload {
|
113
|
+
}
|
114
|
+
export interface LiveRoomServerAudioShareStarted extends LiveRoomServerMediaPayload {
|
115
|
+
}
|
116
|
+
export interface LiveRoomServerAudioShareStoped extends LiveRoomServerMediaPayload {
|
117
|
+
}
|
118
|
+
export interface LiveRoomServerAudioShareStop extends LiveRoomServerTargetedMediaPayload {
|
119
|
+
}
|
120
|
+
export interface LiveRoomServerMicrophoneDisconnected extends LiveRoomServerMediaPayload {
|
121
|
+
}
|
122
|
+
export interface LiveRoomServerMicrophoneConnected extends LiveRoomServerMediaPayload {
|
123
|
+
}
|
124
|
+
export interface LiveRoomServerChatMessageNew extends LiveRoomServerMinimumPayload {
|
125
|
+
receiver: string;
|
126
|
+
author: string;
|
127
|
+
thread_id: string;
|
128
|
+
msg_id: number;
|
129
|
+
text?: string;
|
130
|
+
attacment?: {
|
131
|
+
id: string;
|
132
|
+
extension: string;
|
133
|
+
displayName: string;
|
134
|
+
};
|
135
|
+
}
|
136
|
+
export interface LiveRoomServerChatMessageEdited extends LiveRoomServerMinimumPayload {
|
137
|
+
thread_id: string;
|
138
|
+
msg_id: number;
|
139
|
+
text: string;
|
140
|
+
}
|
141
|
+
export interface LiveRoomServerChatMessageDel extends LiveRoomServerMinimumPayload {
|
142
|
+
thread_id: string;
|
143
|
+
msg_id: number;
|
144
|
+
}
|
145
|
+
export interface LiveRoomServerChatMsgView extends LiveRoomServerMinimumPayload {
|
146
|
+
thread_id: string;
|
147
|
+
messages: number[];
|
148
|
+
}
|
149
|
+
export declare type LiveRoomServerMessageType = LiveRoomServerMicrophoneConnected | LiveRoomServerMicrophoneDisconnected | LiveRoomServerAudioShareStarted | LiveRoomServerVideoShareStarted | LiveRoomServerScreenShareStop | LiveRoomServerScreenShareStoped | LiveRoomServerChatMessageEdited | LiveRoomServerChatMessageNew | LiveRoomServerAudioShareStop | LiveRoomServerAudioShareStoped | LiveRoomServerVideoShareStop | LiveRoomServerVideoShareStoped | LiveRoomServerScreenShareStarted | LiveRoomServerSessionState | LiveRoomServerChatMsgView | LiveRoomServerChatMessageDel | LiveRoomServerSessionEnded | LiveRoomServerClientPing | LiveRoomServerClientLeft | LiveRoomServerClientClose | LiveRoomServerClientEntered;
|
150
|
+
export interface LiveRoomServerMessage {
|
151
|
+
channel: LiveRoomServerMessages;
|
152
|
+
payload: LiveRoomServerMessageType;
|
153
|
+
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@jealous-robot-dev/shared-types-responses",
|
3
|
-
"version": "1.43.
|
3
|
+
"version": "1.43.4",
|
4
4
|
"description": "",
|
5
5
|
"main": "build/index.js",
|
6
6
|
"types": "build/index.d.ts",
|
@@ -24,7 +24,7 @@
|
|
24
24
|
"typescript": "^3.8.3"
|
25
25
|
},
|
26
26
|
"dependencies": {
|
27
|
-
"@jealous-robot-dev/drophr-common": "^1.9.
|
27
|
+
"@jealous-robot-dev/drophr-common": "^1.9.9",
|
28
28
|
"@jealous-robot-dev/shared-phrases": "^1.8.2"
|
29
29
|
}
|
30
30
|
}
|