@ethora/chat-component 24.11.23 → 24.11.25
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,5 +1,9 @@
|
|
|
1
|
+
import { User } from '../../types/types';
|
|
2
|
+
|
|
1
3
|
export declare function getDocuments(walletAddress: string): Promise<import('axios').AxiosResponse<any, any>>;
|
|
2
4
|
export declare function getExportMyData(): Promise<import('axios').AxiosResponse<any, any>>;
|
|
3
5
|
export declare function deleteMe(): Promise<import('axios').AxiosResponse<any, any>>;
|
|
4
6
|
export declare function updateMe(data: any): Promise<import('axios').AxiosResponse<any, any>>;
|
|
5
|
-
export declare function updateProfile(fd: FormData): Promise<
|
|
7
|
+
export declare function updateProfile(fd: FormData): Promise<{
|
|
8
|
+
user: User;
|
|
9
|
+
}>;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { MODAL_TYPES } from '../helpers/constants/MODAL_TYPES';
|
|
2
2
|
|
|
3
|
-
export interface IUser {
|
|
3
|
+
export interface IUser extends Partial<User> {
|
|
4
4
|
id: string;
|
|
5
5
|
name: string | null;
|
|
6
|
-
avatar?: string | null;
|
|
7
|
-
xmmpPass?: string | null;
|
|
8
6
|
userJID?: string | null;
|
|
9
7
|
token: string;
|
|
10
8
|
refreshToken: string;
|
|
@@ -78,9 +76,9 @@ export interface User {
|
|
|
78
76
|
_id: string;
|
|
79
77
|
firstName: string;
|
|
80
78
|
lastName: string;
|
|
81
|
-
email
|
|
82
|
-
username
|
|
83
|
-
profileImage
|
|
79
|
+
email?: string;
|
|
80
|
+
username?: string;
|
|
81
|
+
profileImage?: string;
|
|
84
82
|
emails?: [
|
|
85
83
|
{
|
|
86
84
|
loginType: string;
|
|
@@ -104,6 +102,7 @@ export interface User {
|
|
|
104
102
|
isProfileOpen?: boolean;
|
|
105
103
|
isAssetsOpen?: boolean;
|
|
106
104
|
isAgreeWithTerms?: boolean;
|
|
105
|
+
isSuperAdmin?: any;
|
|
107
106
|
}
|
|
108
107
|
export interface XmppState {
|
|
109
108
|
client: any;
|
|
@@ -132,6 +131,10 @@ export interface IConfig {
|
|
|
132
131
|
enabled: boolean;
|
|
133
132
|
handleBadlogin?: React.ReactElement;
|
|
134
133
|
};
|
|
134
|
+
userLogin?: {
|
|
135
|
+
enabled: boolean;
|
|
136
|
+
user: User | null;
|
|
137
|
+
};
|
|
135
138
|
disableRooms?: boolean;
|
|
136
139
|
defaultLogin?: boolean;
|
|
137
140
|
disableInteractions?: boolean;
|
|
@@ -140,6 +143,7 @@ export interface IConfig {
|
|
|
140
143
|
roomListStyles?: React.CSSProperties;
|
|
141
144
|
chatRoomStyles?: React.CSSProperties;
|
|
142
145
|
setRoomJidInPath?: boolean;
|
|
146
|
+
disableRoomMenu?: boolean;
|
|
143
147
|
}
|
|
144
148
|
export interface StorageUser {
|
|
145
149
|
appId: string;
|
package/package.json
CHANGED