@ethora/chat-component 24.11.24 → 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;
|
|
@@ -134,7 +133,7 @@ export interface IConfig {
|
|
|
134
133
|
};
|
|
135
134
|
userLogin?: {
|
|
136
135
|
enabled: boolean;
|
|
137
|
-
user: User;
|
|
136
|
+
user: User | null;
|
|
138
137
|
};
|
|
139
138
|
disableRooms?: boolean;
|
|
140
139
|
defaultLogin?: boolean;
|
|
@@ -144,6 +143,7 @@ export interface IConfig {
|
|
|
144
143
|
roomListStyles?: React.CSSProperties;
|
|
145
144
|
chatRoomStyles?: React.CSSProperties;
|
|
146
145
|
setRoomJidInPath?: boolean;
|
|
146
|
+
disableRoomMenu?: boolean;
|
|
147
147
|
}
|
|
148
148
|
export interface StorageUser {
|
|
149
149
|
appId: string;
|
package/package.json
CHANGED