@ethora/chat-component 25.1.1 → 25.1.2

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,3 @@
1
+ import { Client } from '@xmpp/client';
2
+
3
+ export declare function createPrivateRoom(title: string, description: string, to: string, client: Client): Promise<string>;
@@ -1,3 +1,3 @@
1
1
  import { Client } from '@xmpp/client';
2
2
 
3
- export declare function createRoom(title: string, description: string, client: Client, to?: string): Promise<string>;
3
+ export declare function createRoom(title: string, description: string, client: Client): Promise<string>;
@@ -21,7 +21,7 @@ export declare class XmppClient implements XmppClientInterface {
21
21
  reconnect(): void;
22
22
  close(): Promise<void>;
23
23
  getRoomsStanza: () => Promise<void>;
24
- createRoomStanza(title: string, description: string, to?: string): Promise<string>;
24
+ createRoomStanza(title: string, description: string): Promise<string>;
25
25
  inviteRoomRequestStanza(to: string, roomJid: string): Promise<void>;
26
26
  leaveTheRoomStanza: (roomJID: string) => void;
27
27
  presenceInRoomStanza: (roomJID: string) => void;
@@ -37,6 +37,7 @@ export declare class XmppClient implements XmppClientInterface {
37
37
  sendTypingRequestStanza(chatId: string, fullName: string, start: boolean): void;
38
38
  getChatsPrivateStoreRequestStanza: () => Promise<unknown>;
39
39
  actionSetTimestampToPrivateStoreStanza(chatId: string, timestamp: number, chats?: string[]): Promise<void>;
40
+ createPrivateRoomStanza(title: string, description: string, to: string): Promise<string>;
40
41
  sendMediaMessageStanza(roomJID: string, data: any): void;
41
42
  }
42
43
  export default XmppClient;
@@ -5,8 +5,8 @@ export interface IUser extends Partial<User> {
5
5
  id: string;
6
6
  name: string | null;
7
7
  userJID?: string | null;
8
- token: string;
9
- refreshToken: string;
8
+ token?: string;
9
+ refreshToken?: string;
10
10
  }
11
11
  export interface IMessage {
12
12
  id: string;
@@ -241,5 +241,6 @@ export interface XmppClientInterface {
241
241
  getChatsPrivateStoreRequestStanza(): Promise<any>;
242
242
  actionSetTimestampToPrivateStoreStanza(chatId: string, timestamp: number, chats?: string[]): Promise<void>;
243
243
  sendMediaMessageStanza(roomJID: string, data: any): void;
244
+ createPrivateRoomStanza(title: string, description: string, to: string): Promise<string>;
244
245
  }
245
246
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethora/chat-component",
3
- "version": "25.01.01",
3
+ "version": "25.01.02",
4
4
  "type": "module",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",