@imam-inter/openim-sdk-js-wasm 3.8.2-1
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.
- package/LICENSE +661 -0
- package/README.md +166 -0
- package/assets/openIM.wasm +0 -0
- package/assets/sql-wasm.wasm +0 -0
- package/assets/wasm_exec.js +561 -0
- package/lib/api/database/alter.d.ts +2 -0
- package/lib/api/database/black.d.ts +7 -0
- package/lib/api/database/conversation.d.ts +31 -0
- package/lib/api/database/friend.d.ts +12 -0
- package/lib/api/database/friendRequest.d.ts +7 -0
- package/lib/api/database/groupMember.d.ts +22 -0
- package/lib/api/database/groupRequest.d.ts +8 -0
- package/lib/api/database/groups.d.ts +14 -0
- package/lib/api/database/index.d.ts +20 -0
- package/lib/api/database/init.d.ts +3 -0
- package/lib/api/database/instance.d.ts +3 -0
- package/lib/api/database/localAppSdkVersion.d.ts +2 -0
- package/lib/api/database/message.d.ts +31 -0
- package/lib/api/database/notification.d.ts +3 -0
- package/lib/api/database/sendingMessages.d.ts +3 -0
- package/lib/api/database/stranger.d.ts +4 -0
- package/lib/api/database/superGroup.d.ts +6 -0
- package/lib/api/database/tableMaster.d.ts +1 -0
- package/lib/api/database/tempCacheChatLogs.d.ts +2 -0
- package/lib/api/database/unreadMessage.d.ts +2 -0
- package/lib/api/database/upload.d.ts +4 -0
- package/lib/api/database/users.d.ts +3 -0
- package/lib/api/database/versionSync.d.ts +3 -0
- package/lib/api/index.d.ts +2 -0
- package/lib/api/upload.d.ts +5 -0
- package/lib/api/worker.d.ts +1 -0
- package/lib/constant/index.d.ts +71 -0
- package/lib/index.d.ts +6 -0
- package/lib/index.es.js +2121 -0
- package/lib/index.js +2125 -0
- package/lib/index.umd.js +2131 -0
- package/lib/sdk/index.d.ts +173 -0
- package/lib/sdk/initialize.d.ts +5 -0
- package/lib/sqls/index.d.ts +20 -0
- package/lib/sqls/localAdminGroupRequests.d.ts +9 -0
- package/lib/sqls/localAppSdkVersion.d.ts +8 -0
- package/lib/sqls/localBlack.d.ts +12 -0
- package/lib/sqls/localChatLogsConversationID.d.ts +36 -0
- package/lib/sqls/localConversationUnreadMessages.d.ts +7 -0
- package/lib/sqls/localConversations.d.ts +34 -0
- package/lib/sqls/localFriend.d.ts +16 -0
- package/lib/sqls/localFriendRequest.d.ts +12 -0
- package/lib/sqls/localGroupMembers.d.ts +27 -0
- package/lib/sqls/localGroupRequests.d.ts +9 -0
- package/lib/sqls/localGroups.d.ts +16 -0
- package/lib/sqls/localNotification.d.ts +8 -0
- package/lib/sqls/localSendingMessages.d.ts +8 -0
- package/lib/sqls/localStranger.d.ts +8 -0
- package/lib/sqls/localSuperGroups.d.ts +10 -0
- package/lib/sqls/localTableMaster.d.ts +5 -0
- package/lib/sqls/localUpload.d.ts +10 -0
- package/lib/sqls/localUsers.d.ts +8 -0
- package/lib/sqls/localVersionSync.d.ts +9 -0
- package/lib/sqls/tempCacheLocalChatLogs.d.ts +6 -0
- package/lib/types/entity.d.ts +452 -0
- package/lib/types/enum.d.ts +134 -0
- package/lib/types/eventData.d.ts +51 -0
- package/lib/types/params.d.ts +390 -0
- package/lib/utils/emitter.d.ts +12 -0
- package/lib/utils/escape.d.ts +23 -0
- package/lib/utils/index.d.ts +7 -0
- package/lib/utils/is.d.ts +6 -0
- package/lib/utils/key.d.ts +3 -0
- package/lib/utils/logFormat.d.ts +1 -0
- package/lib/utils/response.d.ts +1 -0
- package/lib/utils/timer.d.ts +1 -0
- package/lib/utils/value.d.ts +6 -0
- package/lib/worker-legacy.js +1 -0
- package/lib/worker.js +1 -0
- package/package.json +94 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export * from './init';
|
|
2
|
+
export * from './message';
|
|
3
|
+
export * from './conversation';
|
|
4
|
+
export * from './users';
|
|
5
|
+
export * from './superGroup';
|
|
6
|
+
export * from './unreadMessage';
|
|
7
|
+
export * from './black';
|
|
8
|
+
export * from './friend';
|
|
9
|
+
export * from './friendRequest';
|
|
10
|
+
export * from './groups';
|
|
11
|
+
export * from './groupRequest';
|
|
12
|
+
export * from './groupMember';
|
|
13
|
+
export * from './tempCacheChatLogs';
|
|
14
|
+
export * from './upload';
|
|
15
|
+
export * from './stranger';
|
|
16
|
+
export * from './sendingMessages';
|
|
17
|
+
export * from './localAppSdkVersion';
|
|
18
|
+
export * from './versionSync';
|
|
19
|
+
export * from './notification';
|
|
20
|
+
export * from './tableMaster';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare function getMessage(conversationID: string, clientMsgID: string): Promise<string>;
|
|
2
|
+
export declare function getAlreadyExistSeqList(conversationID: string, lostSeqListStr: string): Promise<string>;
|
|
3
|
+
export declare function getMessageList(conversationID: string, count: number, startTime: number, isReverse?: boolean): Promise<string>;
|
|
4
|
+
export declare function getMessageBySeq(conversationID: string, seq: number): Promise<string>;
|
|
5
|
+
export declare function getMessagesByClientMsgIDs(conversationID: string, clientMsgIDListStr: string): Promise<string>;
|
|
6
|
+
export declare function getMessagesBySeqs(conversationID: string, seqListStr: string): Promise<string>;
|
|
7
|
+
export declare function getMessageListNoTime(conversationID: string, count: number, isReverse?: boolean): Promise<string>;
|
|
8
|
+
export declare function getConversationNormalMsgSeq(conversationID: string): Promise<string>;
|
|
9
|
+
export declare function getConversationPeerNormalMsgSeq(conversationID: string, loginUserID: string): Promise<string>;
|
|
10
|
+
export declare function getSendingMessageList(conversationID: string): Promise<string>;
|
|
11
|
+
export declare function updateMessageTimeAndStatus(conversationID: string, clientMsgID: string, serverMsgID: string, sendTime: number, status: number): Promise<string>;
|
|
12
|
+
export declare function updateMessage(conversationID: string, clientMsgID: string, messageStr: string): Promise<string>;
|
|
13
|
+
export declare function updateMessageBySeq(conversationID: string, seq: number, messageStr: string): Promise<string>;
|
|
14
|
+
export declare function batchInsertMessageList(conversationID: string, messageListStr: string): Promise<string>;
|
|
15
|
+
export declare function insertMessage(conversationID: string, messageStr: string): Promise<string>;
|
|
16
|
+
export declare function getMultipleMessage(conversationID: string, messageIDStr: string): Promise<string>;
|
|
17
|
+
export declare function searchMessageByKeyword(conversationID: string, contentTypeStr: string, keywordListStr: string, keywordListMatchType: number, startTime: number, endTime: number, offset: number, count: number): Promise<string>;
|
|
18
|
+
export declare function searchMessageByContentType(conversationID: string, contentTypeStr: string, startTime: number, endTime: number, offset: number, count: number): Promise<string>;
|
|
19
|
+
export declare function searchMessageByContentTypeAndKeyword(conversationID: string, contentTypeStr: string, keywordListStr: string, keywordListMatchType: number, startTime: number, endTime: number): Promise<string>;
|
|
20
|
+
export declare function messageIfExists(conversationID: string, clientMsgID: string): Promise<string>;
|
|
21
|
+
export declare function updateMsgSenderFaceURLAndSenderNickname(conversationID: string, sendID: string, faceURL: string, nickname: string, faceBackgroundColor?: string): Promise<string>;
|
|
22
|
+
export declare function deleteConversationAllMessages(conversationID: string): Promise<string>;
|
|
23
|
+
export declare function markDeleteConversationAllMessages(conversationID: string): Promise<string>;
|
|
24
|
+
export declare function getUnreadMessage(conversationID: string, loginUserID: string): Promise<string>;
|
|
25
|
+
export declare function markConversationMessageAsReadBySeqs(conversationID: string, seqListStr: string, loginUserID: string): Promise<string>;
|
|
26
|
+
export declare function markConversationMessageAsRead(conversationID: string, clientMsgIDListStr: string, loginUserID: string): Promise<string>;
|
|
27
|
+
export declare function updateColumnsMessage(conversationID: string, clientMsgID: string, messageStr: string): Promise<string>;
|
|
28
|
+
export declare function deleteConversationMsgs(conversationID: string, clientMsgIDListStr: string): Promise<string>;
|
|
29
|
+
export declare function markConversationAllMessageAsRead(conversationID: string, clientMsgIDListStr: string): Promise<string>;
|
|
30
|
+
export declare function searchAllMessageByContentType(conversationID: string, clientMsgIDListStr: string): Promise<string>;
|
|
31
|
+
export declare function getLatestActiveMessage(conversationID: string, isReverse: boolean): Promise<string>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { LocalStranger } from '../../sqls';
|
|
2
|
+
export declare function getStrangerInfo(userIDListStr: string): Promise<string>;
|
|
3
|
+
export declare function setStrangerInfo(localStrangerInfoListStr: string): Promise<string>;
|
|
4
|
+
export declare function setSingleStrangerInfo(localStrangerInfo: LocalStranger): Promise<string>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare function getJoinedSuperGroupList(): Promise<string>;
|
|
2
|
+
export declare function getJoinedSuperGroupIDList(): Promise<string>;
|
|
3
|
+
export declare function getSuperGroupInfoByGroupID(groupID: string): Promise<string>;
|
|
4
|
+
export declare function deleteSuperGroup(groupID: string): Promise<string>;
|
|
5
|
+
export declare function insertSuperGroup(groupStr: string): Promise<string>;
|
|
6
|
+
export declare function updateSuperGroup(groupID: string, groupStr: string): Promise<string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getExistedTables(): Promise<string>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function getUpload(partHash: string): Promise<string>;
|
|
2
|
+
export declare function insertUpload(uploadStr: string): Promise<string>;
|
|
3
|
+
export declare function updateUpload(uploadStr: string): Promise<string>;
|
|
4
|
+
export declare function deleteUpload(partHash: string): Promise<string>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const fileMapSet: (uuid: string, file: File) => any;
|
|
2
|
+
export declare const fileMapClear: () => any;
|
|
3
|
+
export declare const wasmOpen: (uuid: string) => Promise<unknown>;
|
|
4
|
+
export declare const wasmClose: (uuid: string) => Promise<unknown>;
|
|
5
|
+
export declare const wasmRead: (uuid: string, offset: number, length: number) => Promise<unknown>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
export declare const DatabaseErrorCode: {
|
|
2
|
+
ErrorInit: number;
|
|
3
|
+
ErrorNoRecord: number;
|
|
4
|
+
ErrorDBTimeout: number;
|
|
5
|
+
};
|
|
6
|
+
export declare enum CbEvents {
|
|
7
|
+
Login = "Login",
|
|
8
|
+
OnConnectFailed = "OnConnectFailed",
|
|
9
|
+
OnConnectSuccess = "OnConnectSuccess",
|
|
10
|
+
OnConnecting = "OnConnecting",
|
|
11
|
+
OnKickedOffline = "OnKickedOffline",
|
|
12
|
+
OnSelfInfoUpdated = "OnSelfInfoUpdated",
|
|
13
|
+
OnUserTokenExpired = "OnUserTokenExpired",
|
|
14
|
+
OnUserTokenInvalid = "OnUserTokenInvalid",
|
|
15
|
+
OnProgress = "OnProgress",
|
|
16
|
+
OnRecvNewMessage = "OnRecvNewMessage",
|
|
17
|
+
OnRecvNewMessages = "OnRecvNewMessages",
|
|
18
|
+
OnRecvOnlineOnlyMessage = "OnRecvOnlineOnlyMessage",
|
|
19
|
+
OnRecvOfflineNewMessage = "onRecvOfflineNewMessage",
|
|
20
|
+
OnRecvOnlineOnlyMessages = "OnRecvOnlineOnlyMessages",
|
|
21
|
+
OnRecvOfflineNewMessages = "onRecvOfflineNewMessages",
|
|
22
|
+
OnRecvMessageRevoked = "OnRecvMessageRevoked",
|
|
23
|
+
OnNewRecvMessageRevoked = "OnNewRecvMessageRevoked",
|
|
24
|
+
OnRecvC2CReadReceipt = "OnRecvC2CReadReceipt",
|
|
25
|
+
OnRecvGroupReadReceipt = "OnRecvGroupReadReceipt",
|
|
26
|
+
OnConversationChanged = "OnConversationChanged",
|
|
27
|
+
OnNewConversation = "OnNewConversation",
|
|
28
|
+
OnConversationUserInputStatusChanged = "OnConversationUserInputStatusChanged",
|
|
29
|
+
OnSyncServerFailed = "OnSyncServerFailed",
|
|
30
|
+
OnSyncServerFinish = "OnSyncServerFinish",
|
|
31
|
+
OnSyncServerProgress = "OnSyncServerProgress",
|
|
32
|
+
OnSyncServerStart = "OnSyncServerStart",
|
|
33
|
+
OnTotalUnreadMessageCountChanged = "OnTotalUnreadMessageCountChanged",
|
|
34
|
+
OnBlackAdded = "OnBlackAdded",
|
|
35
|
+
OnBlackDeleted = "OnBlackDeleted",
|
|
36
|
+
OnFriendApplicationAccepted = "OnFriendApplicationAccepted",
|
|
37
|
+
OnFriendApplicationAdded = "OnFriendApplicationAdded",
|
|
38
|
+
OnFriendApplicationDeleted = "OnFriendApplicationDeleted",
|
|
39
|
+
OnFriendApplicationRejected = "OnFriendApplicationRejected",
|
|
40
|
+
OnFriendInfoChanged = "OnFriendInfoChanged",
|
|
41
|
+
OnFriendAdded = "OnFriendAdded",
|
|
42
|
+
OnFriendDeleted = "OnFriendDeleted",
|
|
43
|
+
OnJoinedGroupAdded = "OnJoinedGroupAdded",
|
|
44
|
+
OnJoinedGroupDeleted = "OnJoinedGroupDeleted",
|
|
45
|
+
OnGroupDismissed = "OnGroupDismissed",
|
|
46
|
+
OnGroupMemberAdded = "OnGroupMemberAdded",
|
|
47
|
+
OnGroupMemberDeleted = "OnGroupMemberDeleted",
|
|
48
|
+
OnGroupApplicationAdded = "OnGroupApplicationAdded",
|
|
49
|
+
OnGroupApplicationDeleted = "OnGroupApplicationDeleted",
|
|
50
|
+
OnGroupInfoChanged = "OnGroupInfoChanged",
|
|
51
|
+
OnGroupMemberInfoChanged = "OnGroupMemberInfoChanged",
|
|
52
|
+
OnGroupApplicationAccepted = "OnGroupApplicationAccepted",
|
|
53
|
+
OnGroupApplicationRejected = "OnGroupApplicationRejected",
|
|
54
|
+
UploadComplete = "UploadComplete",
|
|
55
|
+
OnRecvCustomBusinessMessage = "OnRecvCustomBusinessMessage",
|
|
56
|
+
OnUserStatusChanged = "OnUserStatusChanged",
|
|
57
|
+
OnUploadLogsProgress = "OnUploadLogsProgress",
|
|
58
|
+
OnReceiveNewInvitation = "OnReceiveNewInvitation",
|
|
59
|
+
OnInviteeAccepted = "OnInviteeAccepted",
|
|
60
|
+
OnInviteeRejected = "OnInviteeRejected",
|
|
61
|
+
OnInvitationCancelled = "OnInvitationCancelled",
|
|
62
|
+
OnHangUp = "OnHangUp",
|
|
63
|
+
OnInvitationTimeout = "OnInvitationTimeout",
|
|
64
|
+
OnInviteeAcceptedByOtherDevice = "OnInviteeAcceptedByOtherDevice",
|
|
65
|
+
OnInviteeRejectedByOtherDevice = "OnInviteeRejectedByOtherDevice",
|
|
66
|
+
OnStreamChange = "OnStreamChange",
|
|
67
|
+
OnRoomParticipantConnected = "OnRoomParticipantConnected",
|
|
68
|
+
OnRoomParticipantDisconnected = "OnRoomParticipantDisconnected",
|
|
69
|
+
OnReceiveCustomSignal = "OnReceiveCustomSignal",
|
|
70
|
+
UnUsedEvent = "UnUsedEvent"
|
|
71
|
+
}
|