ttfm-socket 1.7.16 → 1.7.17
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.
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { SocketClient } from "./SocketClient";
|
|
2
|
-
export type { JoinRoomAction } from "../actions/joinRoom";
|
|
3
1
|
export type { AddDjAction } from "../actions/addDj";
|
|
2
|
+
export type { JoinRoomAction } from "../actions/joinRoom";
|
|
4
3
|
export type { PlayOneTimeAnimationAction } from "../actions/playOneTimeAnimation";
|
|
5
4
|
export type { RemoveDjAction } from "../actions/removeDj";
|
|
6
5
|
export type { SkipSongAction } from "../actions/skipSong";
|
|
7
6
|
export type { UpdateNextSongAction } from "../actions/updateNextSong";
|
|
8
7
|
export type { VoteOnSongAction } from "../actions/voteOnSong";
|
|
9
|
-
export { ActionName } from "../types/names";
|
|
10
8
|
export * from "../types/messages";
|
|
11
|
-
export
|
|
9
|
+
export { ActionName } from "../types/names";
|
|
12
10
|
export * from "../types/services";
|
|
13
|
-
export type { AllClientUserData as AllUserData, AvatarPosition, ClientRoomState as RoomState, ClientDj as Dj, ClientRoomUser as RoomUser, ClientNowPlaying as NowPlaying, SongVotes, GhostUserProfile, VoteCounts, } from "../types/state";
|
|
14
11
|
export { TokenRole } from "../types/services";
|
|
12
|
+
export type { AllClientUserData as AllUserData, AvatarPosition, ClientDj as Dj, ClientNowPlaying as NowPlaying, ClientRoomState as RoomState, ClientRoomUser as RoomUser, RoomUserProfile, SongVotes, VoteCounts, } from "../types/state";
|
|
13
|
+
export { SocketClient } from "./SocketClient";
|
|
14
|
+
export * from "./types";
|
|
@@ -14,13 +14,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
18
|
-
|
|
19
|
-
Object.defineProperty(exports, "SocketClient", { enumerable: true, get: function () { return SocketClient_1.SocketClient; } });
|
|
17
|
+
exports.SocketClient = exports.TokenRole = exports.ActionName = void 0;
|
|
18
|
+
__exportStar(require("../types/messages"), exports);
|
|
20
19
|
var names_1 = require("../types/names");
|
|
21
20
|
Object.defineProperty(exports, "ActionName", { enumerable: true, get: function () { return names_1.ActionName; } });
|
|
22
|
-
__exportStar(require("../types/messages"), exports);
|
|
23
|
-
__exportStar(require("./types"), exports);
|
|
24
21
|
__exportStar(require("../types/services"), exports);
|
|
25
22
|
var services_1 = require("../types/services");
|
|
26
23
|
Object.defineProperty(exports, "TokenRole", { enumerable: true, get: function () { return services_1.TokenRole; } });
|
|
24
|
+
var SocketClient_1 = require("./SocketClient");
|
|
25
|
+
Object.defineProperty(exports, "SocketClient", { enumerable: true, get: function () { return SocketClient_1.SocketClient; } });
|
|
26
|
+
__exportStar(require("./types"), exports);
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { MinimalCrateSongResDTO, OtherUserProfileResDto, RoomDto, TokenRole, UserRoles } from "./services";
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* A type representing the user profile for a room user. Since a user may be a ghost without a
|
|
4
|
+
* full profile, it's possible that their profile only contains a subset of the fields.
|
|
5
|
+
*/
|
|
6
|
+
export type RoomUserProfile = Partial<OtherUserProfileResDto> & Pick<OtherUserProfileResDto, "color" | "uuid" | "avatarId" | "nickname" | "verifiedAt">;
|
|
3
7
|
export type ServerDj = {
|
|
4
8
|
userUuid: string;
|
|
5
9
|
/** The key where the song was saved in the Actionhero cache. */
|
|
@@ -23,7 +27,7 @@ export type SongVotesInput = {
|
|
|
23
27
|
star?: boolean;
|
|
24
28
|
};
|
|
25
29
|
export type ServerUserData = {
|
|
26
|
-
userProfile:
|
|
30
|
+
userProfile: RoomUserProfile;
|
|
27
31
|
position: AvatarPosition;
|
|
28
32
|
};
|
|
29
33
|
export type ClientUserData = ServerUserData & {
|