ttfm-socket 1.7.14 → 1.7.16

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/README.md CHANGED
@@ -27,6 +27,7 @@ Welcome to the Hangout FM Socket Client! This package provides a TypeScript clie
27
27
  - [`playedOneTimeAnimation`](#playedonetimeanimation)
28
28
  - [`kickedFromRoom`](#kickedfromroom)
29
29
  - [`roomReset`](#roomreset)
30
+ - [`trackNotPlayable`](#tracknotplayable)
30
31
  - [Examples](#examples)
31
32
  - [Support](#support)
32
33
 
@@ -208,6 +209,16 @@ Sent by the server _only_ to the connection(s) for one specific user in a room.
208
209
 
209
210
  Sent by the server after someone hits the `/resetRoom` endpoint for that room. This means that the room's state will be cleared and the server will close all connections that are currenly in the room. In response to this, the clients will need to open a new connection and rejoin the room via the `joinRoom` Action. This message has no `params`.
210
211
 
212
+ #### `trackNotPlayable`
213
+
214
+ Sent by the server _only_ to the connection(s) for one specific DJ in a room, if that DJ's next song is determined to be unplayable. This indicates that the song in question has been deleted, the DJ's queue should be refetched on the client, and the DJ's next song should be updated again via `updateNextSong`. For this message, `params` takes the following shape:
215
+
216
+ ```ts
217
+ {
218
+ songId: string;
219
+ }
220
+ ```
221
+
211
222
  ## Examples
212
223
 
213
224
  - [Discord Bot](https://github.com/TTFM-Labs/TTLIVE-discord-bot)
@@ -1,5 +1,5 @@
1
1
  import { MinimalCrateSongResDTO, OtherUserProfileResDto, RoomDto, TokenRole, UserRoles } from "./services";
2
- export type GhostUserProfile = Pick<OtherUserProfileResDto, "color" | "uuid" | "avatarId" | "nickname" | "verifiedAt">;
2
+ export type GhostUserProfile = Pick<OtherUserProfileResDto, "color" | "uuid" | "avatarId" | "nickname" | "verifiedAt"> & Partial<Omit<OtherUserProfileResDto, "color" | "uuid" | "avatarId" | "nickname" | "verifiedAt">>;
3
3
  export type ServerDj = {
4
4
  userUuid: string;
5
5
  /** The key where the song was saved in the Actionhero cache. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ttfm-socket",
3
- "version": "1.7.14",
3
+ "version": "1.7.16",
4
4
  "main": "./dist-client/client/index.js",
5
5
  "typings": "./dist-client/client/index.d.ts",
6
6
  "devDependencies": {