@imam-inter/wasm-client-sdk 3.8.3-10 → 3.8.4-patch-test.16
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/assets/wasm_exec.js +15 -1
- 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 +10 -1
- package/lib/index.js +10 -1
- package/lib/index.umd.js +10 -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/types/entity.d.ts +5 -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
|
package/assets/wasm_exec.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
if (!globalThis.fs) {
|
|
15
15
|
let outputBuf = "";
|
|
16
16
|
globalThis.fs = {
|
|
17
|
-
constants: { O_WRONLY: -1, O_RDWR: -1, O_CREAT: -1, O_TRUNC: -1, O_APPEND: -1, O_EXCL: -1 }, // unused
|
|
17
|
+
constants: { O_WRONLY: -1, O_RDWR: -1, O_CREAT: -1, O_TRUNC: -1, O_APPEND: -1, O_EXCL: -1, O_DIRECTORY: -1 }, // unused
|
|
18
18
|
writeSync(fd, buf) {
|
|
19
19
|
outputBuf += decoder.decode(buf);
|
|
20
20
|
const nl = outputBuf.lastIndexOf("\n");
|
|
@@ -73,6 +73,14 @@
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
+
if (!globalThis.path) {
|
|
77
|
+
globalThis.path = {
|
|
78
|
+
resolve(...pathSegments) {
|
|
79
|
+
return pathSegments.join("/");
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
76
84
|
if (!globalThis.crypto) {
|
|
77
85
|
throw new Error("globalThis.crypto is not available, polyfill required (crypto.getRandomValues only)");
|
|
78
86
|
}
|
|
@@ -208,10 +216,16 @@
|
|
|
208
216
|
return decoder.decode(new DataView(this._inst.exports.mem.buffer, saddr, len));
|
|
209
217
|
}
|
|
210
218
|
|
|
219
|
+
const testCallExport = (a, b) => {
|
|
220
|
+
this._inst.exports.testExport0();
|
|
221
|
+
return this._inst.exports.testExport(a, b);
|
|
222
|
+
}
|
|
223
|
+
|
|
211
224
|
const timeOrigin = Date.now() - performance.now();
|
|
212
225
|
this.importObject = {
|
|
213
226
|
_gotest: {
|
|
214
227
|
add: (a, b) => a + b,
|
|
228
|
+
callExport: testCallExport,
|
|
215
229
|
},
|
|
216
230
|
gojs: {
|
|
217
231
|
// Go's SP does not change as long as no Go code is running. Some operations (e.g. calls, getters and setters)
|
|
@@ -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');
|
|
@@ -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));
|
|
@@ -1334,7 +1343,7 @@ class SDK extends Emitter {
|
|
|
1334
1343
|
});
|
|
1335
1344
|
};
|
|
1336
1345
|
this.createQuoteMessage = (params, operationID = v4()) => {
|
|
1337
|
-
return this._invoker('createQuoteMessage', window.createQuoteMessage, [operationID, params.text, params.message], data => {
|
|
1346
|
+
return this._invoker('createQuoteMessage', window.createQuoteMessage, [operationID, params.text, JSON.stringify(params.message)], data => {
|
|
1338
1347
|
// compitable with old version sdk
|
|
1339
1348
|
return data[0];
|
|
1340
1349
|
});
|
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');
|
|
@@ -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));
|
|
@@ -1338,7 +1347,7 @@ class SDK extends Emitter {
|
|
|
1338
1347
|
});
|
|
1339
1348
|
};
|
|
1340
1349
|
this.createQuoteMessage = (params, operationID = v4()) => {
|
|
1341
|
-
return this._invoker('createQuoteMessage', window.createQuoteMessage, [operationID, params.text, params.message], data => {
|
|
1350
|
+
return this._invoker('createQuoteMessage', window.createQuoteMessage, [operationID, params.text, JSON.stringify(params.message)], data => {
|
|
1342
1351
|
// compitable with old version sdk
|
|
1343
1352
|
return data[0];
|
|
1344
1353
|
});
|
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');
|
|
@@ -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));
|
|
@@ -1340,7 +1349,7 @@
|
|
|
1340
1349
|
});
|
|
1341
1350
|
};
|
|
1342
1351
|
this.createQuoteMessage = (params, operationID = v4()) => {
|
|
1343
|
-
return this._invoker('createQuoteMessage', window.createQuoteMessage, [operationID, params.text, params.message], data => {
|
|
1352
|
+
return this._invoker('createQuoteMessage', window.createQuoteMessage, [operationID, params.text, JSON.stringify(params.message)], data => {
|
|
1344
1353
|
// compitable with old version sdk
|
|
1345
1354
|
return data[0];
|
|
1346
1355
|
});
|
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[];
|
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;
|
|
@@ -66,6 +70,7 @@ export declare type GroupApplicationItem = {
|
|
|
66
70
|
joinSource: GroupJoinSource;
|
|
67
71
|
status: GroupStatus;
|
|
68
72
|
userFaceURL: string;
|
|
73
|
+
userFaceBackgroundColor: string;
|
|
69
74
|
faceBackgroundColor: string;
|
|
70
75
|
userID: string;
|
|
71
76
|
};
|
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;
|