ttfm-socket 1.1.2 → 1.1.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.
@@ -1,16 +1,16 @@
1
1
  export interface BaseOperation {
2
2
  path: string;
3
3
  }
4
- export interface AddOperation extends BaseOperation {
4
+ export interface AddOperation<T> extends BaseOperation {
5
5
  op: "add";
6
- value: unknown;
6
+ value: T;
7
7
  }
8
8
  export interface RemoveOperation extends BaseOperation {
9
9
  op: "remove";
10
10
  }
11
- export interface ReplaceOperation extends BaseOperation {
11
+ export interface ReplaceOperation<T> extends BaseOperation {
12
12
  op: "replace";
13
- value: unknown;
13
+ value: T;
14
14
  }
15
15
  export interface MoveOperation extends BaseOperation {
16
16
  op: "move";
@@ -20,8 +20,12 @@ export interface CopyOperation extends BaseOperation {
20
20
  op: "copy";
21
21
  from: string;
22
22
  }
23
- export interface TestOperation extends BaseOperation {
23
+ export interface TestOperation<T> extends BaseOperation {
24
24
  op: "test";
25
- value: unknown;
25
+ value: T;
26
26
  }
27
- export declare type Operation = AddOperation | RemoveOperation | ReplaceOperation | MoveOperation | CopyOperation | TestOperation;
27
+ export interface GetOperation<T> extends BaseOperation {
28
+ op: "_get";
29
+ value: T;
30
+ }
31
+ export declare type Operation = AddOperation<unknown> | RemoveOperation | ReplaceOperation<unknown> | MoveOperation | CopyOperation | TestOperation<unknown> | GetOperation<unknown>;
@@ -106,12 +106,14 @@ export declare namespace UserRoles {
106
106
  export declare type RoomDto = {
107
107
  song?: MinimalCrateSongResDTO | null;
108
108
  unlisted?: boolean;
109
+ varietyStyleMusic?: boolean;
110
+ explicit: boolean;
109
111
  id?: number;
110
112
  name: string;
111
113
  description: string;
112
114
  vibe: string;
113
115
  djType: RoomDto.djType;
114
- musicProviderKeys: Array<"apple" | "audius" | "napster" | "soundCloudPublic" | "spotify" | "uploadService" | "youtube">;
116
+ musicProviderKeys: Array<"apple" | "audius" | "napster" | "soundCloudPublic" | "spotify" | "uploadService" | "youtube" | "sevenDigital">;
115
117
  numberOfDjs: number;
116
118
  songsPerDj: number;
117
119
  usersInRoomUuids?: Array<string>;
@@ -135,6 +137,7 @@ export declare type RoomDto = {
135
137
  isLive: boolean;
136
138
  liveAudio: boolean;
137
139
  posterUrl?: string | null;
140
+ discordServer?: string | null;
138
141
  externalUrl?: string | null;
139
142
  uuid: string;
140
143
  isGuestPasswordProtected: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ttfm-socket",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "main": "./dist-client/client/index.js",
5
5
  "typings": "./dist-client/client/index.d.ts",
6
6
  "devDependencies": {
@@ -18,7 +18,6 @@
18
18
  "aws-sdk-client-mock": "^3.0.0",
19
19
  "eslint": "^8.45.0",
20
20
  "eslint-plugin-prettier": "^5.0.0",
21
- "fast-json-patch": "^3.1.1",
22
21
  "jest": "^29.6.1",
23
22
  "jest-fetch-mock": "^3.0.3",
24
23
  "prettier": "^3.0.0",