@inter-digital/wasm-client-sdk 3.8.4-patch.14 → 3.8.4-patch.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/lib/api/database/conversation.d.ts +1 -0
- package/lib/index.es.js +6 -0
- package/lib/index.js +6 -0
- package/lib/index.umd.js +6 -0
- package/lib/sqls/localConversations.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
|
@@ -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>;
|
package/lib/index.es.js
CHANGED
|
@@ -641,6 +641,7 @@ function initDatabaseAPI(isLogStandardOutput = true) {
|
|
|
641
641
|
window.getAllConversationListToSync = registeMethodOnWindow('getAllConversationListToSync');
|
|
642
642
|
window.getHiddenConversationList = registeMethodOnWindow('getHiddenConversationList');
|
|
643
643
|
window.getConversation = registeMethodOnWindow('getConversation');
|
|
644
|
+
window.getConversationByConversationIDLike = registeMethodOnWindow('getConversationByConversationIDLike');
|
|
644
645
|
window.getMultipleConversationDB = registeMethodOnWindow('getMultipleConversation');
|
|
645
646
|
window.updateColumnsConversation = registeMethodOnWindow('updateColumnsConversation');
|
|
646
647
|
window.updateConversation = registeMethodOnWindow('updateColumnsConversation', 'updateConversation');
|
|
@@ -1233,6 +1234,11 @@ class SDK extends Emitter {
|
|
|
1233
1234
|
isLogStandardOutput: (_a = params.isLogStandardOutput) !== null && _a !== void 0 ? _a : this.isLogStandardOutput,
|
|
1234
1235
|
logFilePath: './',
|
|
1235
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,
|
|
1236
1242
|
};
|
|
1237
1243
|
this.tryParse = (_b = params.tryParse) !== null && _b !== void 0 ? _b : true;
|
|
1238
1244
|
const result = window.initSDK(operationID, JSON.stringify(config));
|
package/lib/index.js
CHANGED
|
@@ -645,6 +645,7 @@ function initDatabaseAPI(isLogStandardOutput = true) {
|
|
|
645
645
|
window.getAllConversationListToSync = registeMethodOnWindow('getAllConversationListToSync');
|
|
646
646
|
window.getHiddenConversationList = registeMethodOnWindow('getHiddenConversationList');
|
|
647
647
|
window.getConversation = registeMethodOnWindow('getConversation');
|
|
648
|
+
window.getConversationByConversationIDLike = registeMethodOnWindow('getConversationByConversationIDLike');
|
|
648
649
|
window.getMultipleConversationDB = registeMethodOnWindow('getMultipleConversation');
|
|
649
650
|
window.updateColumnsConversation = registeMethodOnWindow('updateColumnsConversation');
|
|
650
651
|
window.updateConversation = registeMethodOnWindow('updateColumnsConversation', 'updateConversation');
|
|
@@ -1237,6 +1238,11 @@ class SDK extends Emitter {
|
|
|
1237
1238
|
isLogStandardOutput: (_a = params.isLogStandardOutput) !== null && _a !== void 0 ? _a : this.isLogStandardOutput,
|
|
1238
1239
|
logFilePath: './',
|
|
1239
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,
|
|
1240
1246
|
};
|
|
1241
1247
|
this.tryParse = (_b = params.tryParse) !== null && _b !== void 0 ? _b : true;
|
|
1242
1248
|
const result = window.initSDK(operationID, JSON.stringify(config));
|
package/lib/index.umd.js
CHANGED
|
@@ -647,6 +647,7 @@
|
|
|
647
647
|
window.getAllConversationListToSync = registeMethodOnWindow('getAllConversationListToSync');
|
|
648
648
|
window.getHiddenConversationList = registeMethodOnWindow('getHiddenConversationList');
|
|
649
649
|
window.getConversation = registeMethodOnWindow('getConversation');
|
|
650
|
+
window.getConversationByConversationIDLike = registeMethodOnWindow('getConversationByConversationIDLike');
|
|
650
651
|
window.getMultipleConversationDB = registeMethodOnWindow('getMultipleConversation');
|
|
651
652
|
window.updateColumnsConversation = registeMethodOnWindow('updateColumnsConversation');
|
|
652
653
|
window.updateConversation = registeMethodOnWindow('updateColumnsConversation', 'updateConversation');
|
|
@@ -1239,6 +1240,11 @@
|
|
|
1239
1240
|
isLogStandardOutput: (_a = params.isLogStandardOutput) !== null && _a !== void 0 ? _a : this.isLogStandardOutput,
|
|
1240
1241
|
logFilePath: './',
|
|
1241
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,
|
|
1242
1248
|
};
|
|
1243
1249
|
this.tryParse = (_b = params.tryParse) !== null && _b !== void 0 ? _b : true;
|
|
1244
1250
|
const result = window.initSDK(operationID, JSON.stringify(config));
|
|
@@ -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;
|
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;
|