@imam-inter/wasm-client-sdk 3.8.4-patch.14 → 3.8.4-patch.17
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/friendRequest.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 +12 -3
- package/lib/index.js +12 -3
- package/lib/index.umd.js +12 -3
- 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/sqls/localFriendRequest.d.ts +1 -0
- package/lib/types/entity.d.ts +4 -0
- package/lib/types/params.d.ts +8 -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>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare function insertFriendRequest(localFriendRequestStr: string): Promise<string>;
|
|
2
2
|
export declare function deleteFriendRequestBothUserID(fromUserID: string, toUserID: string): Promise<string>;
|
|
3
|
+
export declare function deleteFriendRequestsByFriendUserID(loginUserID: string, friendUserID: string): Promise<string>;
|
|
3
4
|
export declare function updateFriendRequest(localFriendRequestStr: string): Promise<string>;
|
|
4
5
|
export declare function getRecvFriendApplication(loginUserID: string): Promise<string>;
|
|
5
6
|
export declare function getSendFriendApplication(fromUserId: string): 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
|
@@ -490,13 +490,13 @@ function initWorker() {
|
|
|
490
490
|
? new URL('worker.js', import.meta.url)
|
|
491
491
|
: new URL('worker-legacy.js', import.meta.url);
|
|
492
492
|
if (isViteEnvironment) {
|
|
493
|
-
workerUrl = workerUrl.href.replace('.vite/deps', '@
|
|
493
|
+
workerUrl = workerUrl.href.replace('.vite/deps', '@inter-digital/wasm-client-sdk/lib');
|
|
494
494
|
}
|
|
495
495
|
if (isNuxtEnvironment) {
|
|
496
|
-
workerUrl = workerUrl.href.replace('.cache/vite/client/deps', '@
|
|
496
|
+
workerUrl = workerUrl.href.replace('.cache/vite/client/deps', '@inter-digital/wasm-client-sdk/lib');
|
|
497
497
|
}
|
|
498
498
|
if (isQuasarEnvironment) {
|
|
499
|
-
workerUrl = workerUrl.href.replace(/\.q-cache\/dev-spa\/[^/]+\/deps/, '@
|
|
499
|
+
workerUrl = workerUrl.href.replace(/\.q-cache\/dev-spa\/[^/]+\/deps/, '@inter-digital/wasm-client-sdk/lib');
|
|
500
500
|
}
|
|
501
501
|
worker = new Worker(workerUrl, {
|
|
502
502
|
type: isSupportModuleWorker ? 'module' : 'classic',
|
|
@@ -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');
|
|
@@ -1230,6 +1234,11 @@ class SDK extends Emitter {
|
|
|
1230
1234
|
isLogStandardOutput: (_a = params.isLogStandardOutput) !== null && _a !== void 0 ? _a : this.isLogStandardOutput,
|
|
1231
1235
|
logFilePath: './',
|
|
1232
1236
|
isExternalExtensions: params.isExternalExtensions || false,
|
|
1237
|
+
// SDK Monitoring
|
|
1238
|
+
enableListenerMonitoring: params.enableListenerMonitoring || false,
|
|
1239
|
+
pushgatewayURL: params.pushgatewayURL || '',
|
|
1240
|
+
metricsPushIntervalSec: params.metricsPushIntervalSec || 60,
|
|
1241
|
+
slowCallbackThresholdMs: params.slowCallbackThresholdMs || 1000,
|
|
1233
1242
|
};
|
|
1234
1243
|
this.tryParse = (_b = params.tryParse) !== null && _b !== void 0 ? _b : true;
|
|
1235
1244
|
const result = window.initSDK(operationID, JSON.stringify(config));
|
package/lib/index.js
CHANGED
|
@@ -494,13 +494,13 @@ function initWorker() {
|
|
|
494
494
|
? new URL('worker.js', (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('index.js', document.baseURI).href)))
|
|
495
495
|
: new URL('worker-legacy.js', (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('index.js', document.baseURI).href)));
|
|
496
496
|
if (isViteEnvironment) {
|
|
497
|
-
workerUrl = workerUrl.href.replace('.vite/deps', '@
|
|
497
|
+
workerUrl = workerUrl.href.replace('.vite/deps', '@inter-digital/wasm-client-sdk/lib');
|
|
498
498
|
}
|
|
499
499
|
if (isNuxtEnvironment) {
|
|
500
|
-
workerUrl = workerUrl.href.replace('.cache/vite/client/deps', '@
|
|
500
|
+
workerUrl = workerUrl.href.replace('.cache/vite/client/deps', '@inter-digital/wasm-client-sdk/lib');
|
|
501
501
|
}
|
|
502
502
|
if (isQuasarEnvironment) {
|
|
503
|
-
workerUrl = workerUrl.href.replace(/\.q-cache\/dev-spa\/[^/]+\/deps/, '@
|
|
503
|
+
workerUrl = workerUrl.href.replace(/\.q-cache\/dev-spa\/[^/]+\/deps/, '@inter-digital/wasm-client-sdk/lib');
|
|
504
504
|
}
|
|
505
505
|
worker = new Worker(workerUrl, {
|
|
506
506
|
type: isSupportModuleWorker ? 'module' : 'classic',
|
|
@@ -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');
|
|
@@ -1234,6 +1238,11 @@ class SDK extends Emitter {
|
|
|
1234
1238
|
isLogStandardOutput: (_a = params.isLogStandardOutput) !== null && _a !== void 0 ? _a : this.isLogStandardOutput,
|
|
1235
1239
|
logFilePath: './',
|
|
1236
1240
|
isExternalExtensions: params.isExternalExtensions || false,
|
|
1241
|
+
// SDK Monitoring
|
|
1242
|
+
enableListenerMonitoring: params.enableListenerMonitoring || false,
|
|
1243
|
+
pushgatewayURL: params.pushgatewayURL || '',
|
|
1244
|
+
metricsPushIntervalSec: params.metricsPushIntervalSec || 60,
|
|
1245
|
+
slowCallbackThresholdMs: params.slowCallbackThresholdMs || 1000,
|
|
1237
1246
|
};
|
|
1238
1247
|
this.tryParse = (_b = params.tryParse) !== null && _b !== void 0 ? _b : true;
|
|
1239
1248
|
const result = window.initSDK(operationID, JSON.stringify(config));
|
package/lib/index.umd.js
CHANGED
|
@@ -496,13 +496,13 @@
|
|
|
496
496
|
? new URL('worker.js', (typeof document === 'undefined' && typeof location === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : typeof document === 'undefined' ? location.href : (document.currentScript && document.currentScript.src || new URL('index.umd.js', document.baseURI).href)))
|
|
497
497
|
: new URL('worker-legacy.js', (typeof document === 'undefined' && typeof location === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : typeof document === 'undefined' ? location.href : (document.currentScript && document.currentScript.src || new URL('index.umd.js', document.baseURI).href)));
|
|
498
498
|
if (isViteEnvironment) {
|
|
499
|
-
workerUrl = workerUrl.href.replace('.vite/deps', '@
|
|
499
|
+
workerUrl = workerUrl.href.replace('.vite/deps', '@inter-digital/wasm-client-sdk/lib');
|
|
500
500
|
}
|
|
501
501
|
if (isNuxtEnvironment) {
|
|
502
|
-
workerUrl = workerUrl.href.replace('.cache/vite/client/deps', '@
|
|
502
|
+
workerUrl = workerUrl.href.replace('.cache/vite/client/deps', '@inter-digital/wasm-client-sdk/lib');
|
|
503
503
|
}
|
|
504
504
|
if (isQuasarEnvironment) {
|
|
505
|
-
workerUrl = workerUrl.href.replace(/\.q-cache\/dev-spa\/[^/]+\/deps/, '@
|
|
505
|
+
workerUrl = workerUrl.href.replace(/\.q-cache\/dev-spa\/[^/]+\/deps/, '@inter-digital/wasm-client-sdk/lib');
|
|
506
506
|
}
|
|
507
507
|
worker = new Worker(workerUrl, {
|
|
508
508
|
type: isSupportModuleWorker ? 'module' : 'classic',
|
|
@@ -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');
|
|
@@ -1236,6 +1240,11 @@
|
|
|
1236
1240
|
isLogStandardOutput: (_a = params.isLogStandardOutput) !== null && _a !== void 0 ? _a : this.isLogStandardOutput,
|
|
1237
1241
|
logFilePath: './',
|
|
1238
1242
|
isExternalExtensions: params.isExternalExtensions || false,
|
|
1243
|
+
// SDK Monitoring
|
|
1244
|
+
enableListenerMonitoring: params.enableListenerMonitoring || false,
|
|
1245
|
+
pushgatewayURL: params.pushgatewayURL || '',
|
|
1246
|
+
metricsPushIntervalSec: params.metricsPushIntervalSec || 60,
|
|
1247
|
+
slowCallbackThresholdMs: params.slowCallbackThresholdMs || 1000,
|
|
1239
1248
|
};
|
|
1240
1249
|
this.tryParse = (_b = params.tryParse) !== null && _b !== void 0 ? _b : true;
|
|
1241
1250
|
const result = window.initSDK(operationID, JSON.stringify(config));
|
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[];
|
|
@@ -5,6 +5,7 @@ export declare type LocalFriendRequest = {
|
|
|
5
5
|
export declare function localFriendRequests(db: Database): QueryExecResult[];
|
|
6
6
|
export declare function insertFriendRequest(db: Database, localFriendRequest: LocalFriendRequest): QueryExecResult[];
|
|
7
7
|
export declare function deleteFriendRequestBothUserID(db: Database, fromUserID: string, toUserID: string): QueryExecResult[];
|
|
8
|
+
export declare function deleteFriendRequestsByFriendUserID(db: Database, loginUserID: string, friendUserID: string): QueryExecResult[];
|
|
8
9
|
export declare function updateFriendRequest(db: Database, localFriendRequest: LocalFriendRequest): QueryExecResult[];
|
|
9
10
|
export declare function getRecvFriendApplication(db: Database, loginUserID: string): QueryExecResult[];
|
|
10
11
|
export declare function getSendFriendApplication(db: Database, loginUserID: string): QueryExecResult[];
|
package/lib/types/entity.d.ts
CHANGED
|
@@ -23,6 +23,10 @@ export declare type IMConfig = {
|
|
|
23
23
|
isLogStandardOutput: boolean;
|
|
24
24
|
logFilePath: string;
|
|
25
25
|
isExternalExtensions: boolean;
|
|
26
|
+
enableListenerMonitoring: boolean;
|
|
27
|
+
pushgatewayURL: string;
|
|
28
|
+
metricsPushIntervalSec: number;
|
|
29
|
+
slowCallbackThresholdMs: number;
|
|
26
30
|
};
|
|
27
31
|
export declare type MessageEntity = {
|
|
28
32
|
type: string;
|
package/lib/types/params.d.ts
CHANGED
|
@@ -13,6 +13,10 @@ export declare type InitConfig = {
|
|
|
13
13
|
isLogStandardOutput?: boolean;
|
|
14
14
|
isExternalExtensions?: boolean;
|
|
15
15
|
tryParse?: boolean;
|
|
16
|
+
enableListenerMonitoring?: boolean;
|
|
17
|
+
pushgatewayURL?: string;
|
|
18
|
+
metricsPushIntervalSec?: number;
|
|
19
|
+
slowCallbackThresholdMs?: number;
|
|
16
20
|
};
|
|
17
21
|
export declare type LoginConfig = {
|
|
18
22
|
userID: string;
|
|
@@ -28,6 +32,10 @@ export declare type InitAndLoginConfig = {
|
|
|
28
32
|
isLogStandardOutput?: boolean;
|
|
29
33
|
isExternalExtensions?: boolean;
|
|
30
34
|
tryParse?: boolean;
|
|
35
|
+
enableListenerMonitoring?: boolean;
|
|
36
|
+
pushgatewayURL?: string;
|
|
37
|
+
metricsPushIntervalSec?: number;
|
|
38
|
+
slowCallbackThresholdMs?: number;
|
|
31
39
|
};
|
|
32
40
|
export declare type GetOneConversationParams = {
|
|
33
41
|
sourceID: string;
|