zarebin-player-library 1.0.3 → 1.0.5
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/dist/src/videoPlayerLibrary/shared/helpers/helpers.d.ts +5 -5
- package/dist/src/videoPlayerLibrary/shared/logs/logs.d.ts +88 -88
- package/dist/src/videoPlayerLibrary/shared/redux/actions/quiz.actions.d.ts +1 -1
- package/dist/src/videoPlayerLibrary/shared/redux/slices/chatSlice.d.ts +3 -248
- package/dist/src/videoPlayerLibrary/shared/redux/slices/commentsSlice.d.ts +3 -428
- package/dist/src/videoPlayerLibrary/shared/redux/slices/controllerSlice.d.ts +3 -736
- package/dist/src/videoPlayerLibrary/shared/redux/slices/popoversSlice.d.ts +3 -559
- package/dist/src/videoPlayerLibrary/shared/redux/slices/quizSlice.d.ts +3 -372
- package/dist/src/videoPlayerLibrary/shared/redux/slices/tagsSlice.d.ts +3 -56
- package/dist/src/videoPlayerLibrary/shared/redux/slices/userSlice.d.ts +3 -680
- package/dist/src/videoPlayerLibrary/shared/redux/slices/videoDataSlice.d.ts +3 -5
- package/dist/src/videoPlayerLibrary/shared/redux/store.d.ts +1 -25
- package/dist/zarebin-player-library.js +986 -2446
- package/package.json +8 -7
- package/dist/zarebin-player-library.cjs +0 -1588
|
@@ -2,7 +2,7 @@ import { BookmarkCategory, VideoNumberTypeEnum } from '../interfaces/enums';
|
|
|
2
2
|
import { default as View360 } from '@egjs/view360';
|
|
3
3
|
export declare const wait: (s: number) => Promise<unknown>;
|
|
4
4
|
export declare const getRemainingTime: (timestamp: number) => string;
|
|
5
|
-
export declare const compare: (a: any, b: any) =>
|
|
5
|
+
export declare const compare: (a: any, b: any) => 1 | 0 | -1;
|
|
6
6
|
export declare const handlePageTitle: (title: string) => void;
|
|
7
7
|
export declare const getUUID: () => string;
|
|
8
8
|
export declare const uuidGenerator: () => string;
|
|
@@ -51,9 +51,9 @@ export declare const convertB64ToFile: (dataUrl: string, filename: string) => Fi
|
|
|
51
51
|
export declare const isWhiteListUrl: (url: string) => boolean;
|
|
52
52
|
export declare const parseJwt: (token: string) => any;
|
|
53
53
|
export declare const handlePopoverSizeInMiniPlayer: () => {
|
|
54
|
-
top:
|
|
55
|
-
height:
|
|
56
|
-
left:
|
|
54
|
+
top: any;
|
|
55
|
+
height: any;
|
|
56
|
+
left: any;
|
|
57
57
|
} | {
|
|
58
58
|
top?: undefined;
|
|
59
59
|
height?: undefined;
|
|
@@ -62,7 +62,7 @@ export declare const handlePopoverSizeInMiniPlayer: () => {
|
|
|
62
62
|
export declare const numbersToLetters: string[];
|
|
63
63
|
export declare const handleVideoType: () => VideoNumberTypeEnum.Archive | VideoNumberTypeEnum.Vod | VideoNumberTypeEnum.Clip | VideoNumberTypeEnum.FutureLive;
|
|
64
64
|
export declare const handleHasXTokenParamOrSendXToken: () => {
|
|
65
|
-
"x-token":
|
|
65
|
+
"x-token": any;
|
|
66
66
|
} | undefined;
|
|
67
67
|
export declare const handleGetBookmarkCategory: (provider?: string) => BookmarkCategory;
|
|
68
68
|
export declare function getWebEnvConfig(key: string): string;
|
|
@@ -6,30 +6,30 @@ export declare const feedbackLog: (starNum: Number, reasons: string[], customTex
|
|
|
6
6
|
stars: Number;
|
|
7
7
|
text: string[];
|
|
8
8
|
customText: string | undefined;
|
|
9
|
-
type:
|
|
10
|
-
src:
|
|
11
|
-
provider:
|
|
9
|
+
type: any;
|
|
10
|
+
src: any;
|
|
11
|
+
provider: any;
|
|
12
12
|
};
|
|
13
13
|
export declare const eventMarkerClickLog: (markerId: Number, markerTime: Number, markerTitle: String, markerDescription: String, markerSticker: String) => {
|
|
14
14
|
category: string;
|
|
15
|
-
video_id:
|
|
15
|
+
video_id: any;
|
|
16
16
|
markerId: Number;
|
|
17
17
|
markerTime: Number;
|
|
18
18
|
markerTitle: String;
|
|
19
19
|
markerDescription: String;
|
|
20
20
|
markerSticker: String;
|
|
21
|
-
type:
|
|
22
|
-
src:
|
|
23
|
-
provider:
|
|
21
|
+
type: any;
|
|
22
|
+
src: any;
|
|
23
|
+
provider: any;
|
|
24
24
|
};
|
|
25
25
|
export declare const speedChangeLog: (selectedSpeed: Number) => {
|
|
26
26
|
category: string;
|
|
27
|
-
previousSelectedSpeed:
|
|
27
|
+
previousSelectedSpeed: any;
|
|
28
28
|
selectedSpeed: Number;
|
|
29
29
|
id: number;
|
|
30
|
-
type:
|
|
31
|
-
src:
|
|
32
|
-
provider:
|
|
30
|
+
type: any;
|
|
31
|
+
src: any;
|
|
32
|
+
provider: any;
|
|
33
33
|
};
|
|
34
34
|
export declare const qualityChangeRequestLog: (selectedQuality: String) => {
|
|
35
35
|
category: string;
|
|
@@ -37,51 +37,51 @@ export declare const qualityChangeRequestLog: (selectedQuality: String) => {
|
|
|
37
37
|
previousSelectedQuality: string;
|
|
38
38
|
selectedQuality: String;
|
|
39
39
|
id: number;
|
|
40
|
-
type:
|
|
41
|
-
src:
|
|
42
|
-
provider:
|
|
40
|
+
type: any;
|
|
41
|
+
src: any;
|
|
42
|
+
provider: any;
|
|
43
43
|
};
|
|
44
44
|
export declare const catchUpLoadingLog: (duration: number) => {
|
|
45
45
|
category: string;
|
|
46
46
|
previousVideoTime: number;
|
|
47
|
-
currentVideoTime:
|
|
47
|
+
currentVideoTime: any;
|
|
48
48
|
duration: number;
|
|
49
49
|
quality: string;
|
|
50
50
|
isAutoQuality: any;
|
|
51
51
|
id: number;
|
|
52
|
-
type:
|
|
53
|
-
src:
|
|
54
|
-
provider:
|
|
52
|
+
type: any;
|
|
53
|
+
src: any;
|
|
54
|
+
provider: any;
|
|
55
55
|
};
|
|
56
56
|
export declare const shareDialogLog: (videoTime: number, isJump: boolean, jumpTime: number | undefined, eventMarkerId?: number) => {
|
|
57
57
|
category: string;
|
|
58
58
|
id: number;
|
|
59
|
-
type:
|
|
60
|
-
src:
|
|
59
|
+
type: any;
|
|
60
|
+
src: any;
|
|
61
61
|
videoTime: number;
|
|
62
62
|
eventMarkerId: number | undefined;
|
|
63
|
-
provider:
|
|
63
|
+
provider: any;
|
|
64
64
|
jump: string;
|
|
65
65
|
jumpTime: number | undefined;
|
|
66
66
|
};
|
|
67
67
|
export declare const shareCopyLog: (videoTime: number, isJump: boolean, jumpTime: number | undefined, EventMarker?: number) => {
|
|
68
68
|
category: string;
|
|
69
69
|
id: number;
|
|
70
|
-
type:
|
|
71
|
-
src:
|
|
70
|
+
type: any;
|
|
71
|
+
src: any;
|
|
72
72
|
videoTime: number;
|
|
73
73
|
eventMarkerId: number | undefined;
|
|
74
74
|
jump: string;
|
|
75
75
|
jumpTime: number | undefined;
|
|
76
|
-
provider:
|
|
76
|
+
provider: any;
|
|
77
77
|
};
|
|
78
78
|
export declare const alternativeLiveLog: (alternativeLiveUserId: number) => {
|
|
79
79
|
category: string;
|
|
80
80
|
id: number;
|
|
81
|
-
type:
|
|
82
|
-
src:
|
|
81
|
+
type: any;
|
|
82
|
+
src: any;
|
|
83
83
|
alternativeLiveUserId: number;
|
|
84
|
-
provider:
|
|
84
|
+
provider: any;
|
|
85
85
|
};
|
|
86
86
|
export declare const deActiveSettingLog: () => {
|
|
87
87
|
category: string;
|
|
@@ -89,22 +89,22 @@ export declare const deActiveSettingLog: () => {
|
|
|
89
89
|
hasPoll: string;
|
|
90
90
|
hasEmoji: string;
|
|
91
91
|
id: number;
|
|
92
|
-
type:
|
|
93
|
-
src:
|
|
94
|
-
provider:
|
|
92
|
+
type: any;
|
|
93
|
+
src: any;
|
|
94
|
+
provider: any;
|
|
95
95
|
} | {
|
|
96
96
|
category: string;
|
|
97
97
|
id: number;
|
|
98
|
-
type:
|
|
99
|
-
src:
|
|
100
|
-
provider:
|
|
98
|
+
type: any;
|
|
99
|
+
src: any;
|
|
100
|
+
provider: any;
|
|
101
101
|
};
|
|
102
102
|
export declare const backwardForwardLog: (type: string) => {
|
|
103
103
|
category: string;
|
|
104
104
|
id: number;
|
|
105
|
-
type:
|
|
106
|
-
src:
|
|
107
|
-
provider:
|
|
105
|
+
type: any;
|
|
106
|
+
src: any;
|
|
107
|
+
provider: any;
|
|
108
108
|
};
|
|
109
109
|
export declare const pollModalCloseLog: (params: IParams, details: IDetails, pollId: number) => {
|
|
110
110
|
category: string;
|
|
@@ -118,62 +118,62 @@ export declare const tagClickLog: (tagText: string) => {
|
|
|
118
118
|
category: string;
|
|
119
119
|
tagText: string;
|
|
120
120
|
id: number;
|
|
121
|
-
type:
|
|
122
|
-
src:
|
|
121
|
+
type: any;
|
|
122
|
+
src: any;
|
|
123
123
|
};
|
|
124
124
|
export declare const likeDislikeLog: (category: string) => {
|
|
125
125
|
category: string;
|
|
126
126
|
id: number;
|
|
127
|
-
type:
|
|
128
|
-
src:
|
|
127
|
+
type: any;
|
|
128
|
+
src: any;
|
|
129
129
|
};
|
|
130
130
|
export declare const fullscreenLog: (category: string) => {
|
|
131
131
|
category: string;
|
|
132
132
|
id: number;
|
|
133
|
-
type:
|
|
134
|
-
src:
|
|
133
|
+
type: any;
|
|
134
|
+
src: any;
|
|
135
135
|
};
|
|
136
136
|
export declare const brightnessLog: (source: number, target: number) => {
|
|
137
137
|
category: string;
|
|
138
138
|
source: number;
|
|
139
139
|
target: number;
|
|
140
140
|
id: number;
|
|
141
|
-
type:
|
|
142
|
-
src:
|
|
141
|
+
type: any;
|
|
142
|
+
src: any;
|
|
143
143
|
};
|
|
144
144
|
export declare const volumeLog: (source: number, target: number) => {
|
|
145
145
|
category: string;
|
|
146
146
|
source: number;
|
|
147
147
|
target: number;
|
|
148
148
|
id: number;
|
|
149
|
-
type:
|
|
150
|
-
src:
|
|
149
|
+
type: any;
|
|
150
|
+
src: any;
|
|
151
151
|
};
|
|
152
152
|
export declare const subtitleLog: (language: string) => {
|
|
153
153
|
category: string;
|
|
154
154
|
language: string;
|
|
155
155
|
id: number;
|
|
156
|
-
type:
|
|
157
|
-
src:
|
|
156
|
+
type: any;
|
|
157
|
+
src: any;
|
|
158
158
|
};
|
|
159
159
|
export declare const lockLog: (category: string) => {
|
|
160
160
|
category: string;
|
|
161
161
|
id: number;
|
|
162
|
-
type:
|
|
163
|
-
src:
|
|
162
|
+
type: any;
|
|
163
|
+
src: any;
|
|
164
164
|
};
|
|
165
165
|
export declare const recommendationListLog: (targetVideoId: number, targetUserId: number, targetType: string, listIndex: number) => {
|
|
166
166
|
category: string;
|
|
167
|
-
sourcevideoId:
|
|
167
|
+
sourcevideoId: any;
|
|
168
168
|
targetVideoId: number;
|
|
169
|
-
sourceUserId:
|
|
169
|
+
sourceUserId: any;
|
|
170
170
|
targetUserId: number;
|
|
171
|
-
sourceType:
|
|
171
|
+
sourceType: any;
|
|
172
172
|
targetType: string;
|
|
173
173
|
listIndex: number;
|
|
174
174
|
id: number;
|
|
175
|
-
type:
|
|
176
|
-
src:
|
|
175
|
+
type: any;
|
|
176
|
+
src: any;
|
|
177
177
|
};
|
|
178
178
|
export declare const ExceptionsLog: (type: string, message: string) => {
|
|
179
179
|
category: string;
|
|
@@ -182,22 +182,22 @@ export declare const ExceptionsLog: (type: string, message: string) => {
|
|
|
182
182
|
};
|
|
183
183
|
export declare const videoTimelineLog: (start: number, end: number) => {
|
|
184
184
|
category: string;
|
|
185
|
-
video_id:
|
|
186
|
-
video_type:
|
|
185
|
+
video_id: any;
|
|
186
|
+
video_type: any;
|
|
187
187
|
start: number;
|
|
188
188
|
end: number;
|
|
189
189
|
watchedDuration: number;
|
|
190
190
|
video_duration: number | null;
|
|
191
191
|
clientUUID: string;
|
|
192
|
-
user_id:
|
|
193
|
-
content_type:
|
|
194
|
-
content_id:
|
|
192
|
+
user_id: any;
|
|
193
|
+
content_type: any;
|
|
194
|
+
content_id: any;
|
|
195
195
|
};
|
|
196
196
|
export declare const bookmarkLog: (category: "bookmark" | "unBookmark") => {
|
|
197
197
|
category: "bookmark" | "unBookmark";
|
|
198
|
-
id:
|
|
199
|
-
type:
|
|
200
|
-
src:
|
|
198
|
+
id: any;
|
|
199
|
+
type: any;
|
|
200
|
+
src: any;
|
|
201
201
|
};
|
|
202
202
|
export declare const autoQualityChangeLog: (sourceQuality: String, targetQuality: String, diffQuality: number) => {
|
|
203
203
|
category: string;
|
|
@@ -205,63 +205,63 @@ export declare const autoQualityChangeLog: (sourceQuality: String, targetQuality
|
|
|
205
205
|
targetQuality: String;
|
|
206
206
|
diffQuality: number;
|
|
207
207
|
id: number;
|
|
208
|
-
type:
|
|
209
|
-
src:
|
|
210
|
-
provider:
|
|
208
|
+
type: any;
|
|
209
|
+
src: any;
|
|
210
|
+
provider: any;
|
|
211
211
|
};
|
|
212
212
|
export declare const pingpongLog: (startTimer: number, qualityHistory: number[]) => {
|
|
213
213
|
category: string;
|
|
214
214
|
id: number;
|
|
215
|
-
type:
|
|
216
|
-
src:
|
|
215
|
+
type: any;
|
|
216
|
+
src: any;
|
|
217
217
|
PingPongDuration: number;
|
|
218
218
|
PingPongSourceQuality: string;
|
|
219
219
|
PingPongTargetQuality: string;
|
|
220
|
-
provider:
|
|
220
|
+
provider: any;
|
|
221
221
|
};
|
|
222
222
|
export declare const pausePlayLog: (isPlay: boolean) => {
|
|
223
223
|
category: string;
|
|
224
224
|
id: number;
|
|
225
|
-
type:
|
|
226
|
-
src:
|
|
227
|
-
provider:
|
|
225
|
+
type: any;
|
|
226
|
+
src: any;
|
|
227
|
+
provider: any;
|
|
228
228
|
};
|
|
229
229
|
export declare const initLog: (loadingTime: number, waitingTime: number, bannerLoadingTime: number, firstChunkPlayingTime: number, timerRef: any) => {
|
|
230
230
|
category: string;
|
|
231
231
|
id: number;
|
|
232
|
-
type:
|
|
232
|
+
type: any;
|
|
233
233
|
origin: string;
|
|
234
|
-
src:
|
|
234
|
+
src: any;
|
|
235
235
|
loading: number;
|
|
236
236
|
bannerLoading: number;
|
|
237
237
|
waiting: number;
|
|
238
238
|
firstChunkPlaying: number;
|
|
239
239
|
totalTime: number;
|
|
240
|
-
provider:
|
|
240
|
+
provider: any;
|
|
241
241
|
performance: any;
|
|
242
242
|
userAgent: string;
|
|
243
243
|
};
|
|
244
244
|
export declare const loadingLog: (waitingDuration: number, qualityLevel: number, timerRef: any, loadingCounterRef: any, videoEntranceTime: number) => {
|
|
245
245
|
category: string;
|
|
246
246
|
id: number;
|
|
247
|
-
type:
|
|
248
|
-
src:
|
|
247
|
+
type: any;
|
|
248
|
+
src: any;
|
|
249
249
|
duration: number;
|
|
250
250
|
quality: string;
|
|
251
251
|
isAutoQuality: any;
|
|
252
252
|
previousLoaderDiff: number;
|
|
253
253
|
counter: any;
|
|
254
254
|
loadingPercentile: number;
|
|
255
|
-
videoTime:
|
|
255
|
+
videoTime: any;
|
|
256
256
|
videoEntranceTime: number;
|
|
257
|
-
speed:
|
|
258
|
-
provider:
|
|
257
|
+
speed: any;
|
|
258
|
+
provider: any;
|
|
259
259
|
};
|
|
260
260
|
export declare const playListClickLog: (playlistId: number) => {
|
|
261
261
|
category: string;
|
|
262
262
|
playlistId: number;
|
|
263
|
-
id:
|
|
264
|
-
type:
|
|
263
|
+
id: any;
|
|
264
|
+
type: any;
|
|
265
265
|
};
|
|
266
266
|
export declare const videoOfPlaylistClickLog: (playlistId: number, videoId: number, videoType: number, videoIndex: number) => {
|
|
267
267
|
category: string;
|
|
@@ -272,16 +272,16 @@ export declare const videoOfPlaylistClickLog: (playlistId: number, videoId: numb
|
|
|
272
272
|
};
|
|
273
273
|
export declare const searchLog: (contentType: undefined | ContentTypesString.PlayList | ContentTypesString.Vod | `${ContentTypesString.Vod},${ContentTypesString.PlayList}`) => {
|
|
274
274
|
category: string;
|
|
275
|
-
tag:
|
|
276
|
-
q:
|
|
277
|
-
user_ids:
|
|
275
|
+
tag: any;
|
|
276
|
+
q: any;
|
|
277
|
+
user_ids: any;
|
|
278
278
|
video_type: ContentTypesString | "vod,playlist" | undefined;
|
|
279
279
|
};
|
|
280
280
|
export declare const searchResultClickLog: (videoId: number, videoType: string, videoIndex: number) => {
|
|
281
281
|
category: string;
|
|
282
|
-
tag:
|
|
283
|
-
q:
|
|
284
|
-
user_ids:
|
|
282
|
+
tag: any;
|
|
283
|
+
q: any;
|
|
284
|
+
user_ids: any;
|
|
285
285
|
video_type: ContentTypesString | "vod,playlist" | undefined;
|
|
286
286
|
clickedId: number;
|
|
287
287
|
clickedIndex: number;
|
|
@@ -16,7 +16,7 @@ export declare const handleCurrentQuestion: (data: IQuizUserRecords) => {};
|
|
|
16
16
|
export declare const handleCurrentQuestionInAggregate: (quiz: QuizType) => IQuizQuestions;
|
|
17
17
|
export declare const handleUserAnswerId: (data: IQuizUserRecords) => number;
|
|
18
18
|
export declare const handleCorrectAnswer: () => IQuizChoice;
|
|
19
|
-
export declare const handleUserAnswersCount: () =>
|
|
19
|
+
export declare const handleUserAnswersCount: () => any;
|
|
20
20
|
export declare const handleUserCorrectAnswersCount: (userQuestions: IUserQuestions[]) => number;
|
|
21
21
|
export declare const isUserAnswerFirstQuestion: () => boolean;
|
|
22
22
|
export declare const isUserAnswerLastQuestion: () => boolean;
|
|
@@ -1,249 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export declare const chatSlice: Slice<IChatSlice, {
|
|
5
|
-
setMessages: (state: {
|
|
6
|
-
messages?: {
|
|
7
|
-
created_at: number;
|
|
8
|
-
text: string;
|
|
9
|
-
author: string;
|
|
10
|
-
room_id: string;
|
|
11
|
-
id: string;
|
|
12
|
-
name?: string | undefined;
|
|
13
|
-
avatar_url?: string | undefined;
|
|
14
|
-
isConfirmed?: boolean | undefined;
|
|
15
|
-
}[] | undefined;
|
|
16
|
-
usersInfoInChat: any;
|
|
17
|
-
chatEnabled?: boolean | undefined;
|
|
18
|
-
showChat: boolean;
|
|
19
|
-
socket: any;
|
|
20
|
-
roomId: any;
|
|
21
|
-
chatType: ChatType;
|
|
22
|
-
messageCount: number;
|
|
23
|
-
defaultMessages: {
|
|
24
|
-
id: number;
|
|
25
|
-
message: string;
|
|
26
|
-
}[];
|
|
27
|
-
pinMessage: string | null;
|
|
28
|
-
}, action: PayloadAction<IChatMessage[] | undefined>) => void;
|
|
29
|
-
setUsersInfoInChat: (state: {
|
|
30
|
-
messages?: {
|
|
31
|
-
created_at: number;
|
|
32
|
-
text: string;
|
|
33
|
-
author: string;
|
|
34
|
-
room_id: string;
|
|
35
|
-
id: string;
|
|
36
|
-
name?: string | undefined;
|
|
37
|
-
avatar_url?: string | undefined;
|
|
38
|
-
isConfirmed?: boolean | undefined;
|
|
39
|
-
}[] | undefined;
|
|
40
|
-
usersInfoInChat: any;
|
|
41
|
-
chatEnabled?: boolean | undefined;
|
|
42
|
-
showChat: boolean;
|
|
43
|
-
socket: any;
|
|
44
|
-
roomId: any;
|
|
45
|
-
chatType: ChatType;
|
|
46
|
-
messageCount: number;
|
|
47
|
-
defaultMessages: {
|
|
48
|
-
id: number;
|
|
49
|
-
message: string;
|
|
50
|
-
}[];
|
|
51
|
-
pinMessage: string | null;
|
|
52
|
-
}, action: PayloadAction<any>) => void;
|
|
53
|
-
setChatEnabled: (state: {
|
|
54
|
-
messages?: {
|
|
55
|
-
created_at: number;
|
|
56
|
-
text: string;
|
|
57
|
-
author: string;
|
|
58
|
-
room_id: string;
|
|
59
|
-
id: string;
|
|
60
|
-
name?: string | undefined;
|
|
61
|
-
avatar_url?: string | undefined;
|
|
62
|
-
isConfirmed?: boolean | undefined;
|
|
63
|
-
}[] | undefined;
|
|
64
|
-
usersInfoInChat: any;
|
|
65
|
-
chatEnabled?: boolean | undefined;
|
|
66
|
-
showChat: boolean;
|
|
67
|
-
socket: any;
|
|
68
|
-
roomId: any;
|
|
69
|
-
chatType: ChatType;
|
|
70
|
-
messageCount: number;
|
|
71
|
-
defaultMessages: {
|
|
72
|
-
id: number;
|
|
73
|
-
message: string;
|
|
74
|
-
}[];
|
|
75
|
-
pinMessage: string | null;
|
|
76
|
-
}, action: PayloadAction<boolean | undefined>) => void;
|
|
77
|
-
setShowChat: (state: {
|
|
78
|
-
messages?: {
|
|
79
|
-
created_at: number;
|
|
80
|
-
text: string;
|
|
81
|
-
author: string;
|
|
82
|
-
room_id: string;
|
|
83
|
-
id: string;
|
|
84
|
-
name?: string | undefined;
|
|
85
|
-
avatar_url?: string | undefined;
|
|
86
|
-
isConfirmed?: boolean | undefined;
|
|
87
|
-
}[] | undefined;
|
|
88
|
-
usersInfoInChat: any;
|
|
89
|
-
chatEnabled?: boolean | undefined;
|
|
90
|
-
showChat: boolean;
|
|
91
|
-
socket: any;
|
|
92
|
-
roomId: any;
|
|
93
|
-
chatType: ChatType;
|
|
94
|
-
messageCount: number;
|
|
95
|
-
defaultMessages: {
|
|
96
|
-
id: number;
|
|
97
|
-
message: string;
|
|
98
|
-
}[];
|
|
99
|
-
pinMessage: string | null;
|
|
100
|
-
}, action: PayloadAction<boolean>) => void;
|
|
101
|
-
setSocket: (state: {
|
|
102
|
-
messages?: {
|
|
103
|
-
created_at: number;
|
|
104
|
-
text: string;
|
|
105
|
-
author: string;
|
|
106
|
-
room_id: string;
|
|
107
|
-
id: string;
|
|
108
|
-
name?: string | undefined;
|
|
109
|
-
avatar_url?: string | undefined;
|
|
110
|
-
isConfirmed?: boolean | undefined;
|
|
111
|
-
}[] | undefined;
|
|
112
|
-
usersInfoInChat: any;
|
|
113
|
-
chatEnabled?: boolean | undefined;
|
|
114
|
-
showChat: boolean;
|
|
115
|
-
socket: any;
|
|
116
|
-
roomId: any;
|
|
117
|
-
chatType: ChatType;
|
|
118
|
-
messageCount: number;
|
|
119
|
-
defaultMessages: {
|
|
120
|
-
id: number;
|
|
121
|
-
message: string;
|
|
122
|
-
}[];
|
|
123
|
-
pinMessage: string | null;
|
|
124
|
-
}, action: PayloadAction<any>) => void;
|
|
125
|
-
setRoomId: (state: {
|
|
126
|
-
messages?: {
|
|
127
|
-
created_at: number;
|
|
128
|
-
text: string;
|
|
129
|
-
author: string;
|
|
130
|
-
room_id: string;
|
|
131
|
-
id: string;
|
|
132
|
-
name?: string | undefined;
|
|
133
|
-
avatar_url?: string | undefined;
|
|
134
|
-
isConfirmed?: boolean | undefined;
|
|
135
|
-
}[] | undefined;
|
|
136
|
-
usersInfoInChat: any;
|
|
137
|
-
chatEnabled?: boolean | undefined;
|
|
138
|
-
showChat: boolean;
|
|
139
|
-
socket: any;
|
|
140
|
-
roomId: any;
|
|
141
|
-
chatType: ChatType;
|
|
142
|
-
messageCount: number;
|
|
143
|
-
defaultMessages: {
|
|
144
|
-
id: number;
|
|
145
|
-
message: string;
|
|
146
|
-
}[];
|
|
147
|
-
pinMessage: string | null;
|
|
148
|
-
}, action: PayloadAction<any>) => void;
|
|
149
|
-
setChatType: (state: {
|
|
150
|
-
messages?: {
|
|
151
|
-
created_at: number;
|
|
152
|
-
text: string;
|
|
153
|
-
author: string;
|
|
154
|
-
room_id: string;
|
|
155
|
-
id: string;
|
|
156
|
-
name?: string | undefined;
|
|
157
|
-
avatar_url?: string | undefined;
|
|
158
|
-
isConfirmed?: boolean | undefined;
|
|
159
|
-
}[] | undefined;
|
|
160
|
-
usersInfoInChat: any;
|
|
161
|
-
chatEnabled?: boolean | undefined;
|
|
162
|
-
showChat: boolean;
|
|
163
|
-
socket: any;
|
|
164
|
-
roomId: any;
|
|
165
|
-
chatType: ChatType;
|
|
166
|
-
messageCount: number;
|
|
167
|
-
defaultMessages: {
|
|
168
|
-
id: number;
|
|
169
|
-
message: string;
|
|
170
|
-
}[];
|
|
171
|
-
pinMessage: string | null;
|
|
172
|
-
}, action: PayloadAction<ChatType>) => void;
|
|
173
|
-
setMessageCount: (state: {
|
|
174
|
-
messages?: {
|
|
175
|
-
created_at: number;
|
|
176
|
-
text: string;
|
|
177
|
-
author: string;
|
|
178
|
-
room_id: string;
|
|
179
|
-
id: string;
|
|
180
|
-
name?: string | undefined;
|
|
181
|
-
avatar_url?: string | undefined;
|
|
182
|
-
isConfirmed?: boolean | undefined;
|
|
183
|
-
}[] | undefined;
|
|
184
|
-
usersInfoInChat: any;
|
|
185
|
-
chatEnabled?: boolean | undefined;
|
|
186
|
-
showChat: boolean;
|
|
187
|
-
socket: any;
|
|
188
|
-
roomId: any;
|
|
189
|
-
chatType: ChatType;
|
|
190
|
-
messageCount: number;
|
|
191
|
-
defaultMessages: {
|
|
192
|
-
id: number;
|
|
193
|
-
message: string;
|
|
194
|
-
}[];
|
|
195
|
-
pinMessage: string | null;
|
|
196
|
-
}, action: PayloadAction<number>) => void;
|
|
197
|
-
setDefaultMessages: (state: {
|
|
198
|
-
messages?: {
|
|
199
|
-
created_at: number;
|
|
200
|
-
text: string;
|
|
201
|
-
author: string;
|
|
202
|
-
room_id: string;
|
|
203
|
-
id: string;
|
|
204
|
-
name?: string | undefined;
|
|
205
|
-
avatar_url?: string | undefined;
|
|
206
|
-
isConfirmed?: boolean | undefined;
|
|
207
|
-
}[] | undefined;
|
|
208
|
-
usersInfoInChat: any;
|
|
209
|
-
chatEnabled?: boolean | undefined;
|
|
210
|
-
showChat: boolean;
|
|
211
|
-
socket: any;
|
|
212
|
-
roomId: any;
|
|
213
|
-
chatType: ChatType;
|
|
214
|
-
messageCount: number;
|
|
215
|
-
defaultMessages: {
|
|
216
|
-
id: number;
|
|
217
|
-
message: string;
|
|
218
|
-
}[];
|
|
219
|
-
pinMessage: string | null;
|
|
220
|
-
}, action: PayloadAction<IChatDefaultMessages[]>) => void;
|
|
221
|
-
setPinMessage: (state: {
|
|
222
|
-
messages?: {
|
|
223
|
-
created_at: number;
|
|
224
|
-
text: string;
|
|
225
|
-
author: string;
|
|
226
|
-
room_id: string;
|
|
227
|
-
id: string;
|
|
228
|
-
name?: string | undefined;
|
|
229
|
-
avatar_url?: string | undefined;
|
|
230
|
-
isConfirmed?: boolean | undefined;
|
|
231
|
-
}[] | undefined;
|
|
232
|
-
usersInfoInChat: any;
|
|
233
|
-
chatEnabled?: boolean | undefined;
|
|
234
|
-
showChat: boolean;
|
|
235
|
-
socket: any;
|
|
236
|
-
roomId: any;
|
|
237
|
-
chatType: ChatType;
|
|
238
|
-
messageCount: number;
|
|
239
|
-
defaultMessages: {
|
|
240
|
-
id: number;
|
|
241
|
-
message: string;
|
|
242
|
-
}[];
|
|
243
|
-
pinMessage: string | null;
|
|
244
|
-
}, action: PayloadAction<string | null>) => void;
|
|
245
|
-
setClearChatSlice: () => IChatSlice;
|
|
246
|
-
}, "chat", "chat", SliceSelectors<IChatSlice>>;
|
|
247
|
-
export declare const setMessages: ActionCreatorWithOptionalPayload<IChatMessage[] | undefined, "chat/setMessages">, setUsersInfoInChat: ActionCreatorWithPayload<any, "chat/setUsersInfoInChat">, setChatEnabled: ActionCreatorWithOptionalPayload<boolean | undefined, "chat/setChatEnabled">, setShowChat: ActionCreatorWithPayload<boolean, "chat/setShowChat">, setSocket: ActionCreatorWithPayload<any, "chat/setSocket">, setClearChatSlice: ActionCreatorWithoutPayload<"chat/setClearChatSlice">, setRoomId: ActionCreatorWithPayload<any, "chat/setRoomId">, setChatType: ActionCreatorWithPayload<ChatType, "chat/setChatType">, setMessageCount: ActionCreatorWithPayload<number, "chat/setMessageCount">, setDefaultMessages: ActionCreatorWithPayload<IChatDefaultMessages[], "chat/setDefaultMessages">, setPinMessage: ActionCreatorWithPayload<string | null, "chat/setPinMessage">;
|
|
248
|
-
declare const _default: Reducer<IChatSlice>;
|
|
1
|
+
export declare const chatSlice: any;
|
|
2
|
+
export declare const setMessages: any, setUsersInfoInChat: any, setChatEnabled: any, setShowChat: any, setSocket: any, setClearChatSlice: any, setRoomId: any, setChatType: any, setMessageCount: any, setDefaultMessages: any, setPinMessage: any;
|
|
3
|
+
declare const _default: any;
|
|
249
4
|
export default _default;
|