@imam-inter/wasm-client-sdk 3.8.4-patch.6 → 3.8.5-patch.12
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/assets/openIM.wasm +0 -0
- package/lib/api/database/black.d.ts +1 -0
- package/lib/api/database/conversation.d.ts +1 -0
- package/lib/api/database/message.d.ts +1 -0
- package/lib/api/database/users.d.ts +1 -0
- package/lib/index.es.js +5 -1
- package/lib/index.js +5 -1
- package/lib/index.umd.js +5 -1
- package/lib/sqls/localBlack.d.ts +1 -0
- package/lib/sqls/localChatLogsConversationID.d.ts +1 -0
- package/lib/sqls/localConversations.d.ts +1 -0
- package/lib/worker-legacy.js +1 -1
- package/lib/worker.js +1 -1
- package/package.json +1 -1
package/assets/openIM.wasm
CHANGED
|
Binary file
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare function getBlackList(): Promise<string>;
|
|
2
2
|
export declare function getBlackListUserID(): Promise<string>;
|
|
3
|
+
export declare function getBlackListByOtherDB(loginUserID: string): Promise<string>;
|
|
3
4
|
export declare function getBlackInfoByBlockUserID(blockUserID: string, loginUserID: string): Promise<string>;
|
|
4
5
|
export declare function getBlackInfoList(blockUserIDListStr: string): Promise<string>;
|
|
5
6
|
export declare function insertBlack(localBlackStr: string): Promise<string>;
|
|
@@ -6,6 +6,7 @@ export declare function getAllSingleConversationIDList(): Promise<string>;
|
|
|
6
6
|
export declare function getAllConversationIDList(): Promise<string>;
|
|
7
7
|
export declare function getHiddenConversationList(): Promise<string>;
|
|
8
8
|
export declare function getConversation(conversationID: string): Promise<string>;
|
|
9
|
+
export declare function getConversationByConversationIDLike(conversationID: string): Promise<string>;
|
|
9
10
|
export declare function getMultipleConversation(conversationIDList: string): Promise<string>;
|
|
10
11
|
export declare function updateColumnsConversation(conversationID: string, conversation: ClientConversation | string): Promise<string>;
|
|
11
12
|
export declare function decrConversationUnreadCount(conversationID: string, count: number): Promise<string>;
|
|
@@ -20,6 +20,7 @@ export declare function searchMessageByContentType(conversationID: string, conte
|
|
|
20
20
|
export declare function searchMessageByContentTypeAndKeyword(conversationID: string, contentTypeStr: string, keywordListStr: string, keywordListMatchType: number, startTime: number, endTime: number): Promise<string>;
|
|
21
21
|
export declare function messageIfExists(conversationID: string, clientMsgID: string): Promise<string>;
|
|
22
22
|
export declare function updateMsgSenderFaceURLAndSenderNickname(conversationID: string, sendID: string, faceURL: string, nickname: string, faceBackgroundColor?: string): Promise<string>;
|
|
23
|
+
export declare function updateMsgSenderFaceBackgroundColor(conversationID: string, sendID: string, faceBackgroundColor: string): Promise<string>;
|
|
23
24
|
export declare function deleteConversationAllMessages(conversationID: string): Promise<string>;
|
|
24
25
|
export declare function markDeleteConversationAllMessages(conversationID: string): Promise<string>;
|
|
25
26
|
export declare function getUnreadMessage(conversationID: string, loginUserID: string): Promise<string>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export declare function getLoginUser(userID: string): Promise<string>;
|
|
2
2
|
export declare function insertLoginUser(userStr: string): Promise<string>;
|
|
3
3
|
export declare function updateLoginUser(userStr: string): Promise<string>;
|
|
4
|
+
export declare function processUserCommandGetAll(): Promise<string>;
|
package/lib/index.es.js
CHANGED
|
@@ -607,6 +607,7 @@ function initDatabaseAPI(isLogStandardOutput = true) {
|
|
|
607
607
|
window.updateMsgSenderNickname = registeMethodOnWindow('updateMsgSenderNickname');
|
|
608
608
|
window.updateMsgSenderFaceURL = registeMethodOnWindow('updateMsgSenderFaceURL');
|
|
609
609
|
window.updateMsgSenderFaceURLAndSenderNickname = registeMethodOnWindow('updateMsgSenderFaceURLAndSenderNickname');
|
|
610
|
+
window.updateMsgSenderFaceBackgroundColor = registeMethodOnWindow('updateMsgSenderFaceBackgroundColor');
|
|
610
611
|
window.getMsgSeqByClientMsgID = registeMethodOnWindow('getMsgSeqByClientMsgID');
|
|
611
612
|
window.getMsgSeqListByGroupID = registeMethodOnWindow('getMsgSeqListByGroupID');
|
|
612
613
|
window.getMsgSeqListByPeerUserID = registeMethodOnWindow('getMsgSeqListByPeerUserID');
|
|
@@ -640,6 +641,7 @@ function initDatabaseAPI(isLogStandardOutput = true) {
|
|
|
640
641
|
window.getAllConversationListToSync = registeMethodOnWindow('getAllConversationListToSync');
|
|
641
642
|
window.getHiddenConversationList = registeMethodOnWindow('getHiddenConversationList');
|
|
642
643
|
window.getConversation = registeMethodOnWindow('getConversation');
|
|
644
|
+
window.getConversationByConversationIDLike = registeMethodOnWindow('getConversationByConversationIDLike');
|
|
643
645
|
window.getMultipleConversationDB = registeMethodOnWindow('getMultipleConversation');
|
|
644
646
|
window.updateColumnsConversation = registeMethodOnWindow('updateColumnsConversation');
|
|
645
647
|
window.updateConversation = registeMethodOnWindow('updateColumnsConversation', 'updateConversation');
|
|
@@ -674,6 +676,7 @@ function initDatabaseAPI(isLogStandardOutput = true) {
|
|
|
674
676
|
window.getLoginUser = registeMethodOnWindow('getLoginUser');
|
|
675
677
|
window.insertLoginUser = registeMethodOnWindow('insertLoginUser');
|
|
676
678
|
window.updateLoginUser = registeMethodOnWindow('updateLoginUser');
|
|
679
|
+
window.processUserCommandGetAll = registeMethodOnWindow('processUserCommandGetAll');
|
|
677
680
|
window.getStrangerInfo = registeMethodOnWindow('getStrangerInfo');
|
|
678
681
|
window.setStrangerInfo = registeMethodOnWindow('setStrangerInfo');
|
|
679
682
|
// app sdk versions
|
|
@@ -739,6 +742,7 @@ function initDatabaseAPI(isLogStandardOutput = true) {
|
|
|
739
742
|
// black
|
|
740
743
|
window.getBlackListDB = registeMethodOnWindow('getBlackList');
|
|
741
744
|
window.getBlackListUserID = registeMethodOnWindow('getBlackListUserID');
|
|
745
|
+
window.getBlackListByOtherDB = registeMethodOnWindow('getBlackListByOtherDB');
|
|
742
746
|
window.getBlackInfoByBlockUserID = registeMethodOnWindow('getBlackInfoByBlockUserID');
|
|
743
747
|
window.getBlackInfoList = registeMethodOnWindow('getBlackInfoList');
|
|
744
748
|
window.insertBlack = registeMethodOnWindow('insertBlack');
|
|
@@ -1334,7 +1338,7 @@ class SDK extends Emitter {
|
|
|
1334
1338
|
});
|
|
1335
1339
|
};
|
|
1336
1340
|
this.createQuoteMessage = (params, operationID = v4()) => {
|
|
1337
|
-
return this._invoker('createQuoteMessage', window.createQuoteMessage, [operationID, params.text, params.message], data => {
|
|
1341
|
+
return this._invoker('createQuoteMessage', window.createQuoteMessage, [operationID, params.text, JSON.stringify(params.message)], data => {
|
|
1338
1342
|
// compitable with old version sdk
|
|
1339
1343
|
return data[0];
|
|
1340
1344
|
});
|
package/lib/index.js
CHANGED
|
@@ -611,6 +611,7 @@ function initDatabaseAPI(isLogStandardOutput = true) {
|
|
|
611
611
|
window.updateMsgSenderNickname = registeMethodOnWindow('updateMsgSenderNickname');
|
|
612
612
|
window.updateMsgSenderFaceURL = registeMethodOnWindow('updateMsgSenderFaceURL');
|
|
613
613
|
window.updateMsgSenderFaceURLAndSenderNickname = registeMethodOnWindow('updateMsgSenderFaceURLAndSenderNickname');
|
|
614
|
+
window.updateMsgSenderFaceBackgroundColor = registeMethodOnWindow('updateMsgSenderFaceBackgroundColor');
|
|
614
615
|
window.getMsgSeqByClientMsgID = registeMethodOnWindow('getMsgSeqByClientMsgID');
|
|
615
616
|
window.getMsgSeqListByGroupID = registeMethodOnWindow('getMsgSeqListByGroupID');
|
|
616
617
|
window.getMsgSeqListByPeerUserID = registeMethodOnWindow('getMsgSeqListByPeerUserID');
|
|
@@ -644,6 +645,7 @@ function initDatabaseAPI(isLogStandardOutput = true) {
|
|
|
644
645
|
window.getAllConversationListToSync = registeMethodOnWindow('getAllConversationListToSync');
|
|
645
646
|
window.getHiddenConversationList = registeMethodOnWindow('getHiddenConversationList');
|
|
646
647
|
window.getConversation = registeMethodOnWindow('getConversation');
|
|
648
|
+
window.getConversationByConversationIDLike = registeMethodOnWindow('getConversationByConversationIDLike');
|
|
647
649
|
window.getMultipleConversationDB = registeMethodOnWindow('getMultipleConversation');
|
|
648
650
|
window.updateColumnsConversation = registeMethodOnWindow('updateColumnsConversation');
|
|
649
651
|
window.updateConversation = registeMethodOnWindow('updateColumnsConversation', 'updateConversation');
|
|
@@ -678,6 +680,7 @@ function initDatabaseAPI(isLogStandardOutput = true) {
|
|
|
678
680
|
window.getLoginUser = registeMethodOnWindow('getLoginUser');
|
|
679
681
|
window.insertLoginUser = registeMethodOnWindow('insertLoginUser');
|
|
680
682
|
window.updateLoginUser = registeMethodOnWindow('updateLoginUser');
|
|
683
|
+
window.processUserCommandGetAll = registeMethodOnWindow('processUserCommandGetAll');
|
|
681
684
|
window.getStrangerInfo = registeMethodOnWindow('getStrangerInfo');
|
|
682
685
|
window.setStrangerInfo = registeMethodOnWindow('setStrangerInfo');
|
|
683
686
|
// app sdk versions
|
|
@@ -743,6 +746,7 @@ function initDatabaseAPI(isLogStandardOutput = true) {
|
|
|
743
746
|
// black
|
|
744
747
|
window.getBlackListDB = registeMethodOnWindow('getBlackList');
|
|
745
748
|
window.getBlackListUserID = registeMethodOnWindow('getBlackListUserID');
|
|
749
|
+
window.getBlackListByOtherDB = registeMethodOnWindow('getBlackListByOtherDB');
|
|
746
750
|
window.getBlackInfoByBlockUserID = registeMethodOnWindow('getBlackInfoByBlockUserID');
|
|
747
751
|
window.getBlackInfoList = registeMethodOnWindow('getBlackInfoList');
|
|
748
752
|
window.insertBlack = registeMethodOnWindow('insertBlack');
|
|
@@ -1338,7 +1342,7 @@ class SDK extends Emitter {
|
|
|
1338
1342
|
});
|
|
1339
1343
|
};
|
|
1340
1344
|
this.createQuoteMessage = (params, operationID = v4()) => {
|
|
1341
|
-
return this._invoker('createQuoteMessage', window.createQuoteMessage, [operationID, params.text, params.message], data => {
|
|
1345
|
+
return this._invoker('createQuoteMessage', window.createQuoteMessage, [operationID, params.text, JSON.stringify(params.message)], data => {
|
|
1342
1346
|
// compitable with old version sdk
|
|
1343
1347
|
return data[0];
|
|
1344
1348
|
});
|
package/lib/index.umd.js
CHANGED
|
@@ -613,6 +613,7 @@
|
|
|
613
613
|
window.updateMsgSenderNickname = registeMethodOnWindow('updateMsgSenderNickname');
|
|
614
614
|
window.updateMsgSenderFaceURL = registeMethodOnWindow('updateMsgSenderFaceURL');
|
|
615
615
|
window.updateMsgSenderFaceURLAndSenderNickname = registeMethodOnWindow('updateMsgSenderFaceURLAndSenderNickname');
|
|
616
|
+
window.updateMsgSenderFaceBackgroundColor = registeMethodOnWindow('updateMsgSenderFaceBackgroundColor');
|
|
616
617
|
window.getMsgSeqByClientMsgID = registeMethodOnWindow('getMsgSeqByClientMsgID');
|
|
617
618
|
window.getMsgSeqListByGroupID = registeMethodOnWindow('getMsgSeqListByGroupID');
|
|
618
619
|
window.getMsgSeqListByPeerUserID = registeMethodOnWindow('getMsgSeqListByPeerUserID');
|
|
@@ -646,6 +647,7 @@
|
|
|
646
647
|
window.getAllConversationListToSync = registeMethodOnWindow('getAllConversationListToSync');
|
|
647
648
|
window.getHiddenConversationList = registeMethodOnWindow('getHiddenConversationList');
|
|
648
649
|
window.getConversation = registeMethodOnWindow('getConversation');
|
|
650
|
+
window.getConversationByConversationIDLike = registeMethodOnWindow('getConversationByConversationIDLike');
|
|
649
651
|
window.getMultipleConversationDB = registeMethodOnWindow('getMultipleConversation');
|
|
650
652
|
window.updateColumnsConversation = registeMethodOnWindow('updateColumnsConversation');
|
|
651
653
|
window.updateConversation = registeMethodOnWindow('updateColumnsConversation', 'updateConversation');
|
|
@@ -680,6 +682,7 @@
|
|
|
680
682
|
window.getLoginUser = registeMethodOnWindow('getLoginUser');
|
|
681
683
|
window.insertLoginUser = registeMethodOnWindow('insertLoginUser');
|
|
682
684
|
window.updateLoginUser = registeMethodOnWindow('updateLoginUser');
|
|
685
|
+
window.processUserCommandGetAll = registeMethodOnWindow('processUserCommandGetAll');
|
|
683
686
|
window.getStrangerInfo = registeMethodOnWindow('getStrangerInfo');
|
|
684
687
|
window.setStrangerInfo = registeMethodOnWindow('setStrangerInfo');
|
|
685
688
|
// app sdk versions
|
|
@@ -745,6 +748,7 @@
|
|
|
745
748
|
// black
|
|
746
749
|
window.getBlackListDB = registeMethodOnWindow('getBlackList');
|
|
747
750
|
window.getBlackListUserID = registeMethodOnWindow('getBlackListUserID');
|
|
751
|
+
window.getBlackListByOtherDB = registeMethodOnWindow('getBlackListByOtherDB');
|
|
748
752
|
window.getBlackInfoByBlockUserID = registeMethodOnWindow('getBlackInfoByBlockUserID');
|
|
749
753
|
window.getBlackInfoList = registeMethodOnWindow('getBlackInfoList');
|
|
750
754
|
window.insertBlack = registeMethodOnWindow('insertBlack');
|
|
@@ -1340,7 +1344,7 @@
|
|
|
1340
1344
|
});
|
|
1341
1345
|
};
|
|
1342
1346
|
this.createQuoteMessage = (params, operationID = v4()) => {
|
|
1343
|
-
return this._invoker('createQuoteMessage', window.createQuoteMessage, [operationID, params.text, params.message], data => {
|
|
1347
|
+
return this._invoker('createQuoteMessage', window.createQuoteMessage, [operationID, params.text, JSON.stringify(params.message)], data => {
|
|
1344
1348
|
// compitable with old version sdk
|
|
1345
1349
|
return data[0];
|
|
1346
1350
|
});
|
package/lib/sqls/localBlack.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export declare type LocalBlack = {
|
|
|
5
5
|
export declare function locaBlacks(db: Database): QueryExecResult[];
|
|
6
6
|
export declare function getBlackList(db: Database): QueryExecResult[];
|
|
7
7
|
export declare function getBlackListUserID(db: Database): QueryExecResult[];
|
|
8
|
+
export declare function getBlackListByOther(db: Database, loginUserID: string): QueryExecResult[];
|
|
8
9
|
export declare function getBlackInfoByBlockUserID(db: Database, blockUserID: string, loginUserID: string): QueryExecResult[];
|
|
9
10
|
export declare function getBlackInfoList(db: Database, blockUserIDList: string[]): QueryExecResult[];
|
|
10
11
|
export declare function insertBlack(db: Database, localBlack: LocalBlack): QueryExecResult[];
|
|
@@ -24,6 +24,7 @@ export declare function searchMessageByContentType(db: Database, conversationID:
|
|
|
24
24
|
export declare function searchMessageByContentTypeAndKeyword(db: Database, conversationID: string, contentType: number[], keywordList: string[], keywordListMatchType: number, startTime: number, endTime: number): QueryExecResult[];
|
|
25
25
|
export declare function messageIfExists(db: Database, conversationID: string, clientMsgID: string): QueryExecResult[];
|
|
26
26
|
export declare function updateMsgSenderFaceURLAndSenderNickname(db: Database, conversationID: string, sendID: string, faceURL: string, nickname: string, faceBackgroundColor?: string): QueryExecResult[];
|
|
27
|
+
export declare function updateMsgSenderFaceBackgroundColor(db: Database, conversationID: string, sendID: string, faceBackgroundColor: string): QueryExecResult[];
|
|
27
28
|
export declare function deleteConversationAllMessages(db: Database, conversationID: string): QueryExecResult[];
|
|
28
29
|
export declare function markDeleteConversationAllMessages(db: Database, conversationID: string): QueryExecResult[];
|
|
29
30
|
export declare function getUnreadMessage(db: Database, conversationID: string, loginUserID: string): QueryExecResult[];
|
|
@@ -12,6 +12,7 @@ export declare function getAllConversationIDList(db: Database): QueryExecResult[
|
|
|
12
12
|
export declare function getHiddenConversationList(db: Database): QueryExecResult[];
|
|
13
13
|
export declare function getConversationListSplit(db: Database, offset: number, count: number): QueryExecResult[];
|
|
14
14
|
export declare function getConversation(db: Database, conversationID: string): QueryExecResult[];
|
|
15
|
+
export declare function getConversationByConversationIDLike(db: Database, conversationID: string): QueryExecResult[];
|
|
15
16
|
export declare function getMultipleConversation(db: Database, conversationIDList: string[]): QueryExecResult[];
|
|
16
17
|
export declare function updateColumnsConversation(db: Database, conversationID: string, conversation: ClientConversation): QueryExecResult[];
|
|
17
18
|
export declare function incrConversationUnreadCount(db: Database, conversationID: string): QueryExecResult[];
|