@imam-inter/wasm-client-sdk 3.8.4-patch-group.18 → 3.8.4-patch-grup.20
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/groupRequest.d.ts +1 -0
- package/lib/index.es.js +2 -1
- package/lib/index.js +7 -6
- package/lib/index.umd.js +7 -6
- package/lib/sqls/localAdminGroupRequests.d.ts +1 -1
- package/lib/sqls/localAppSdkVersion.d.ts +1 -1
- package/lib/sqls/localBlack.d.ts +1 -1
- package/lib/sqls/localChatLogsConversationID.d.ts +1 -1
- package/lib/sqls/localConversationUnreadMessages.d.ts +1 -1
- package/lib/sqls/localConversations.d.ts +1 -1
- package/lib/sqls/localFriend.d.ts +1 -1
- package/lib/sqls/localFriendRequest.d.ts +1 -1
- package/lib/sqls/localGroupMembers.d.ts +1 -1
- package/lib/sqls/localGroupRequests.d.ts +4 -1
- package/lib/sqls/localGroups.d.ts +1 -1
- package/lib/sqls/localNotification.d.ts +1 -1
- package/lib/sqls/localSendingMessages.d.ts +1 -1
- package/lib/sqls/localStranger.d.ts +1 -1
- package/lib/sqls/localSuperGroups.d.ts +1 -1
- package/lib/sqls/localTableMaster.d.ts +1 -1
- package/lib/sqls/localUpload.d.ts +1 -1
- package/lib/sqls/localUsers.d.ts +1 -1
- package/lib/sqls/localVersionSync.d.ts +1 -1
- package/lib/sqls/tempCacheLocalChatLogs.d.ts +1 -1
- package/lib/types/entity.d.ts +53 -53
- package/lib/types/eventData.d.ts +2 -2
- package/lib/types/params.d.ts +76 -76
- package/lib/utils/emitter.d.ts +1 -1
- package/lib/utils/key.d.ts +1 -1
- package/lib/worker-legacy.js +1 -1
- package/lib/worker.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare function insertGroupRequest(localGroupRequestStr: string): Promise<string>;
|
|
2
2
|
export declare function deleteGroupRequest(groupID: string, userID: string): Promise<string>;
|
|
3
3
|
export declare function updateGroupRequest(localGroupRequestStr: string): Promise<string>;
|
|
4
|
+
export declare function updateGroupRequestGroupInfo(groupID: string, updatesStr: string): Promise<string>;
|
|
4
5
|
export declare function getSendGroupApplication(): Promise<string>;
|
|
5
6
|
export declare function insertAdminGroupRequest(localAdminGroupRequestStr: string): Promise<string>;
|
|
6
7
|
export declare function deleteAdminGroupRequest(groupID: string, userID: string): Promise<string>;
|
package/lib/index.es.js
CHANGED
|
@@ -791,6 +791,7 @@ function initDatabaseAPI(isLogStandardOutput = true) {
|
|
|
791
791
|
window.insertGroupRequest = registeMethodOnWindow('insertGroupRequest');
|
|
792
792
|
window.deleteGroupRequest = registeMethodOnWindow('deleteGroupRequest');
|
|
793
793
|
window.updateGroupRequest = registeMethodOnWindow('updateGroupRequest');
|
|
794
|
+
window.updateGroupRequestGroupInfo = registeMethodOnWindow('updateGroupRequestGroupInfo');
|
|
794
795
|
window.getSendGroupApplication = registeMethodOnWindow('getSendGroupApplication');
|
|
795
796
|
window.insertAdminGroupRequest = registeMethodOnWindow('insertAdminGroupRequest');
|
|
796
797
|
window.deleteAdminGroupRequest = registeMethodOnWindow('deleteAdminGroupRequest');
|
|
@@ -899,7 +900,7 @@ for (let i = 0; i < 256; ++i) {
|
|
|
899
900
|
function unsafeStringify(arr, offset = 0) {
|
|
900
901
|
// Note: Be careful editing this code! It's been tuned for performance
|
|
901
902
|
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
|
902
|
-
return
|
|
903
|
+
return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
|
|
903
904
|
}
|
|
904
905
|
|
|
905
906
|
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
package/lib/index.js
CHANGED
|
@@ -487,13 +487,13 @@ function initWorker() {
|
|
|
487
487
|
// const IMWorker = require('worker-loader!./worker.js');
|
|
488
488
|
// worker = new IMWorker.default();
|
|
489
489
|
// use for webpack5+ or vite
|
|
490
|
-
const isViteEnvironment = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('index.js', document.baseURI).href)).includes('.vite/deps');
|
|
491
|
-
const isNuxtEnvironment = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('index.js', document.baseURI).href)).includes('_nuxt/node_modules');
|
|
492
|
-
const isQuasarEnvironment = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('index.js', document.baseURI).href)).includes('.q-cache');
|
|
490
|
+
const isViteEnvironment = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || new URL('index.js', document.baseURI).href)).includes('.vite/deps');
|
|
491
|
+
const isNuxtEnvironment = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || new URL('index.js', document.baseURI).href)).includes('_nuxt/node_modules');
|
|
492
|
+
const isQuasarEnvironment = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || new URL('index.js', document.baseURI).href)).includes('.q-cache');
|
|
493
493
|
const isSupportModuleWorker = supportsModuleWorkers();
|
|
494
494
|
let workerUrl = isSupportModuleWorker
|
|
495
|
-
? 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)))
|
|
496
|
-
: 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)));
|
|
495
|
+
? new URL('worker.js', (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || new URL('index.js', document.baseURI).href)))
|
|
496
|
+
: new URL('worker-legacy.js', (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || new URL('index.js', document.baseURI).href)));
|
|
497
497
|
if (isViteEnvironment) {
|
|
498
498
|
workerUrl = workerUrl.href.replace('.vite/deps', '@inter-digital/wasm-client-sdk/lib');
|
|
499
499
|
}
|
|
@@ -795,6 +795,7 @@ function initDatabaseAPI(isLogStandardOutput = true) {
|
|
|
795
795
|
window.insertGroupRequest = registeMethodOnWindow('insertGroupRequest');
|
|
796
796
|
window.deleteGroupRequest = registeMethodOnWindow('deleteGroupRequest');
|
|
797
797
|
window.updateGroupRequest = registeMethodOnWindow('updateGroupRequest');
|
|
798
|
+
window.updateGroupRequestGroupInfo = registeMethodOnWindow('updateGroupRequestGroupInfo');
|
|
798
799
|
window.getSendGroupApplication = registeMethodOnWindow('getSendGroupApplication');
|
|
799
800
|
window.insertAdminGroupRequest = registeMethodOnWindow('insertAdminGroupRequest');
|
|
800
801
|
window.deleteAdminGroupRequest = registeMethodOnWindow('deleteAdminGroupRequest');
|
|
@@ -903,7 +904,7 @@ for (let i = 0; i < 256; ++i) {
|
|
|
903
904
|
function unsafeStringify(arr, offset = 0) {
|
|
904
905
|
// Note: Be careful editing this code! It's been tuned for performance
|
|
905
906
|
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
|
906
|
-
return
|
|
907
|
+
return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
|
|
907
908
|
}
|
|
908
909
|
|
|
909
910
|
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
package/lib/index.umd.js
CHANGED
|
@@ -489,13 +489,13 @@
|
|
|
489
489
|
// const IMWorker = require('worker-loader!./worker.js');
|
|
490
490
|
// worker = new IMWorker.default();
|
|
491
491
|
// use for webpack5+ or vite
|
|
492
|
-
const isViteEnvironment = (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)).includes('.vite/deps');
|
|
493
|
-
const isNuxtEnvironment = (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)).includes('_nuxt/node_modules');
|
|
494
|
-
const isQuasarEnvironment = (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)).includes('.q-cache');
|
|
492
|
+
const isViteEnvironment = (typeof document === 'undefined' && typeof location === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : typeof document === 'undefined' ? location.href : (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || new URL('index.umd.js', document.baseURI).href)).includes('.vite/deps');
|
|
493
|
+
const isNuxtEnvironment = (typeof document === 'undefined' && typeof location === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : typeof document === 'undefined' ? location.href : (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || new URL('index.umd.js', document.baseURI).href)).includes('_nuxt/node_modules');
|
|
494
|
+
const isQuasarEnvironment = (typeof document === 'undefined' && typeof location === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : typeof document === 'undefined' ? location.href : (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || new URL('index.umd.js', document.baseURI).href)).includes('.q-cache');
|
|
495
495
|
const isSupportModuleWorker = supportsModuleWorkers();
|
|
496
496
|
let workerUrl = isSupportModuleWorker
|
|
497
|
-
? 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)))
|
|
498
|
-
: 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)));
|
|
497
|
+
? 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.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || new URL('index.umd.js', document.baseURI).href)))
|
|
498
|
+
: 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.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || new URL('index.umd.js', document.baseURI).href)));
|
|
499
499
|
if (isViteEnvironment) {
|
|
500
500
|
workerUrl = workerUrl.href.replace('.vite/deps', '@inter-digital/wasm-client-sdk/lib');
|
|
501
501
|
}
|
|
@@ -797,6 +797,7 @@
|
|
|
797
797
|
window.insertGroupRequest = registeMethodOnWindow('insertGroupRequest');
|
|
798
798
|
window.deleteGroupRequest = registeMethodOnWindow('deleteGroupRequest');
|
|
799
799
|
window.updateGroupRequest = registeMethodOnWindow('updateGroupRequest');
|
|
800
|
+
window.updateGroupRequestGroupInfo = registeMethodOnWindow('updateGroupRequestGroupInfo');
|
|
800
801
|
window.getSendGroupApplication = registeMethodOnWindow('getSendGroupApplication');
|
|
801
802
|
window.insertAdminGroupRequest = registeMethodOnWindow('insertAdminGroupRequest');
|
|
802
803
|
window.deleteAdminGroupRequest = registeMethodOnWindow('deleteAdminGroupRequest');
|
|
@@ -905,7 +906,7 @@
|
|
|
905
906
|
function unsafeStringify(arr, offset = 0) {
|
|
906
907
|
// Note: Be careful editing this code! It's been tuned for performance
|
|
907
908
|
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
|
908
|
-
return
|
|
909
|
+
return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
|
|
909
910
|
}
|
|
910
911
|
|
|
911
912
|
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
package/lib/sqls/localBlack.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Database, QueryExecResult } from '@jlongster/sql.js';
|
|
2
|
-
export
|
|
2
|
+
export type ClientMessage = {
|
|
3
3
|
[key: string]: any;
|
|
4
4
|
};
|
|
5
5
|
export declare function localChatLogsConversationID(db: Database, conversationID: string): QueryExecResult[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Database, QueryExecResult } from '@jlongster/sql.js';
|
|
2
|
-
export
|
|
2
|
+
export type ClientLocalConversationUnreadMessage = {
|
|
3
3
|
[key: string]: any;
|
|
4
4
|
};
|
|
5
5
|
export declare function localConversationUnreadMessages(db: Database): QueryExecResult[];
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { Database, QueryExecResult } from '@jlongster/sql.js';
|
|
2
|
-
export
|
|
2
|
+
export type LocalGroupRequest = {
|
|
3
3
|
[key: string]: any;
|
|
4
4
|
};
|
|
5
5
|
export declare function localGroupRequests(db: Database): QueryExecResult[];
|
|
6
6
|
export declare function insertGroupRequest(db: Database, localGroupRequest: LocalGroupRequest): QueryExecResult[];
|
|
7
7
|
export declare function deleteGroupRequest(db: Database, groupID: string, userID: string): QueryExecResult[];
|
|
8
8
|
export declare function updateGroupRequest(db: Database, localGroupRequest: LocalGroupRequest): QueryExecResult[];
|
|
9
|
+
export declare function updateGroupRequestGroupInfo(db: Database, groupID: string, updates: {
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}): QueryExecResult[];
|
|
9
12
|
export declare function getSendGroupApplication(db: Database): QueryExecResult[];
|
package/lib/sqls/localUsers.d.ts
CHANGED