ttfm-socket 1.2.26 → 1.2.29

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.
@@ -0,0 +1,24 @@
1
+ import { Action, Connection, ParamsFrom, chatRoom } from "actionhero";
2
+ import { AsyncReturnType } from "type-fest";
3
+ import { ActionName, MiddlewareName } from "../types/names";
4
+ type RoomStatus = AsyncReturnType<typeof chatRoom.roomStatus>;
5
+ type RoomStatusWithConnectionInfo = RoomStatus & {
6
+ members: RoomStatus["members"] & Record<string, {
7
+ connection?: Partial<Connection>;
8
+ }>;
9
+ };
10
+ export declare class GetRoomStatusAction extends Action {
11
+ name: ActionName.getRoomStatus;
12
+ description: string;
13
+ inputs: {
14
+ roomUuid: {
15
+ required: true;
16
+ };
17
+ };
18
+ middleware: MiddlewareName[];
19
+ run({ connection, params: { roomUuid }, }: {
20
+ connection: Connection;
21
+ params: ParamsFrom<GetRoomStatusAction>;
22
+ }): Promise<RoomStatusWithConnectionInfo>;
23
+ }
24
+ export {};
@@ -145,6 +145,7 @@ export declare type RoomDto = {
145
145
  uuid: string;
146
146
  isGuestPasswordProtected: boolean;
147
147
  hasChat: boolean;
148
+ ownerUserUuid: string | null;
148
149
  };
149
150
  export declare namespace RoomDto {
150
151
  enum djType {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ttfm-socket",
3
- "version": "1.2.26",
3
+ "version": "1.2.29",
4
4
  "main": "./dist-client/client/index.js",
5
5
  "typings": "./dist-client/client/index.d.ts",
6
6
  "devDependencies": {