ttfm-socket 1.7.12 → 1.7.13

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.
@@ -7,9 +7,9 @@ export declare const StatefulServerMessageName: {
7
7
  readonly lookedUpSong: "lookedUpSong";
8
8
  readonly playedSong: "playedSong";
9
9
  readonly removedDj: "removedDj";
10
- readonly updatedRoomSettings: "updatedRoomSettings";
11
10
  readonly updatedGuestPassword: "updatedGuestPassword";
12
11
  readonly updatedNextSong: "updatedNextSong";
12
+ readonly updatedRoomSettings: "updatedRoomSettings";
13
13
  readonly updatedUserData: "updatedUserData";
14
14
  readonly updatedUserProfile: "updatedUserProfile";
15
15
  readonly userJoined: "userJoined";
@@ -20,18 +20,20 @@ export declare const StatelessServerMessageName: {
20
20
  readonly kickedFromRoom: "kickedFromRoom";
21
21
  readonly playedOneTimeAnimation: "playedOneTimeAnimation";
22
22
  readonly roomReset: "roomReset";
23
+ readonly trackNotPlayable: "trackNotPlayable";
23
24
  };
24
25
  export declare const ServerMessageName: {
25
26
  kickedFromRoom: "kickedFromRoom";
26
27
  playedOneTimeAnimation: "playedOneTimeAnimation";
27
28
  roomReset: "roomReset";
29
+ trackNotPlayable: "trackNotPlayable";
28
30
  addedDj: "addedDj";
29
31
  lookedUpSong: "lookedUpSong";
30
32
  playedSong: "playedSong";
31
33
  removedDj: "removedDj";
32
- updatedRoomSettings: "updatedRoomSettings";
33
34
  updatedGuestPassword: "updatedGuestPassword";
34
35
  updatedNextSong: "updatedNextSong";
36
+ updatedRoomSettings: "updatedRoomSettings";
35
37
  updatedUserData: "updatedUserData";
36
38
  updatedUserProfile: "updatedUserProfile";
37
39
  userJoined: "userJoined";
@@ -50,7 +52,10 @@ export type PlayedOneTimeAnimationParams<O extends OneTimeAnimationType = OneTim
50
52
  export type KickedFromRoomParams = {
51
53
  banReason?: string;
52
54
  };
53
- export type StatelessServerMessageParams = PlayedOneTimeAnimationParams | KickedFromRoomParams;
55
+ export type TrackNotPlayableParams = {
56
+ songId: string;
57
+ };
58
+ export type StatelessServerMessageParams = PlayedOneTimeAnimationParams | KickedFromRoomParams | TrackNotPlayableParams;
54
59
  export declare const OneTimeAnimation: {
55
60
  readonly emoji: "emoji";
56
61
  readonly jump: "jump";
@@ -70,9 +75,13 @@ export type KickedFromRoomMessage = {
70
75
  name: typeof StatelessServerMessageName.kickedFromRoom;
71
76
  params: KickedFromRoomParams;
72
77
  };
78
+ export type TrackNotPlayableMessage = {
79
+ name: typeof StatelessServerMessageName.trackNotPlayable;
80
+ params: TrackNotPlayableParams;
81
+ };
73
82
  export type StatelessServerMessage = {
74
83
  statePatch?: undefined;
75
- } & (PlayedOneTimeAnimationMessage | KickedFromRoomMessage);
84
+ } & (PlayedOneTimeAnimationMessage | KickedFromRoomMessage | TrackNotPlayableMessage);
76
85
  export type CustomServerMessage = StatefulServerMessage | StatelessServerMessage;
77
86
  export type ExtractStatelessServerMessage<N extends StatelessServerMessageNameType> = Extract<StatelessServerMessage, {
78
87
  name: N;
@@ -6,9 +6,9 @@ exports.StatefulServerMessageName = {
6
6
  lookedUpSong: "lookedUpSong",
7
7
  playedSong: "playedSong",
8
8
  removedDj: "removedDj",
9
- updatedRoomSettings: "updatedRoomSettings",
10
9
  updatedGuestPassword: "updatedGuestPassword",
11
10
  updatedNextSong: "updatedNextSong",
11
+ updatedRoomSettings: "updatedRoomSettings",
12
12
  updatedUserData: "updatedUserData",
13
13
  updatedUserProfile: "updatedUserProfile",
14
14
  userJoined: "userJoined",
@@ -19,6 +19,7 @@ exports.StatelessServerMessageName = {
19
19
  kickedFromRoom: "kickedFromRoom",
20
20
  playedOneTimeAnimation: "playedOneTimeAnimation",
21
21
  roomReset: "roomReset",
22
+ trackNotPlayable: "trackNotPlayable",
22
23
  };
23
24
  exports.ServerMessageName = {
24
25
  ...exports.StatefulServerMessageName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ttfm-socket",
3
- "version": "1.7.12",
3
+ "version": "1.7.13",
4
4
  "main": "./dist-client/client/index.js",
5
5
  "typings": "./dist-client/client/index.d.ts",
6
6
  "devDependencies": {