@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.
@@ -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 (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]]).toLowerCase();
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 (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]]).toLowerCase();
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 (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]]).toLowerCase();
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);
@@ -1,5 +1,5 @@
1
1
  import { Database, QueryExecResult } from '@jlongster/sql.js';
2
- export declare type LocalAdminGroupRequest = {
2
+ export type LocalAdminGroupRequest = {
3
3
  [key: string]: any;
4
4
  };
5
5
  export declare function localAdminGroupRequests(db: Database): QueryExecResult[];
@@ -1,5 +1,5 @@
1
1
  import { Database, QueryExecResult } from '@jlongster/sql.js';
2
- export declare type LocalAppSDKVersion = {
2
+ export type LocalAppSDKVersion = {
3
3
  [key: string]: any;
4
4
  };
5
5
  export declare function localAppSDKVersions(db: Database): QueryExecResult[];
@@ -1,5 +1,5 @@
1
1
  import { Database, QueryExecResult } from '@jlongster/sql.js';
2
- export declare type LocalBlack = {
2
+ export type LocalBlack = {
3
3
  [key: string]: any;
4
4
  };
5
5
  export declare function locaBlacks(db: Database): QueryExecResult[];
@@ -1,5 +1,5 @@
1
1
  import { Database, QueryExecResult } from '@jlongster/sql.js';
2
- export declare type ClientMessage = {
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 declare type ClientLocalConversationUnreadMessage = {
2
+ export type ClientLocalConversationUnreadMessage = {
3
3
  [key: string]: any;
4
4
  };
5
5
  export declare function localConversationUnreadMessages(db: Database): QueryExecResult[];
@@ -1,5 +1,5 @@
1
1
  import { Database, QueryExecResult } from '@jlongster/sql.js';
2
- export declare type ClientConversation = {
2
+ export type ClientConversation = {
3
3
  [key: string]: any;
4
4
  };
5
5
  export declare function localConversations(db: Database): QueryExecResult[];
@@ -1,5 +1,5 @@
1
1
  import { Database, QueryExecResult } from '@jlongster/sql.js';
2
- export declare type LocalFriend = {
2
+ export type LocalFriend = {
3
3
  [key: string]: any;
4
4
  };
5
5
  export declare function localFriends(db: Database): QueryExecResult[];
@@ -1,5 +1,5 @@
1
1
  import { Database, QueryExecResult } from '@jlongster/sql.js';
2
- export declare type LocalFriendRequest = {
2
+ export type LocalFriendRequest = {
3
3
  [key: string]: any;
4
4
  };
5
5
  export declare function localFriendRequests(db: Database): QueryExecResult[];
@@ -1,5 +1,5 @@
1
1
  import { Database, QueryExecResult } from '@jlongster/sql.js';
2
- export declare type LocalGroupMember = {
2
+ export type LocalGroupMember = {
3
3
  [key: string]: any;
4
4
  };
5
5
  export declare function localGroupMembers(db: Database): QueryExecResult[];
@@ -1,9 +1,12 @@
1
1
  import { Database, QueryExecResult } from '@jlongster/sql.js';
2
- export declare type LocalGroupRequest = {
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[];
@@ -1,5 +1,5 @@
1
1
  import { Database, QueryExecResult } from '@jlongster/sql.js';
2
- export declare type LocalGroup = {
2
+ export type LocalGroup = {
3
3
  [key: string]: any;
4
4
  };
5
5
  export declare function localGroups(db: Database): QueryExecResult[];
@@ -1,5 +1,5 @@
1
1
  import { Database, QueryExecResult } from '@jlongster/sql.js';
2
- export declare type LocalNotification = {
2
+ export type LocalNotification = {
3
3
  [key: string]: any;
4
4
  };
5
5
  export declare function localNotification(db: Database): QueryExecResult[];
@@ -1,5 +1,5 @@
1
1
  import { Database, QueryExecResult } from '@jlongster/sql.js';
2
- export declare type LocalSendingMessage = {
2
+ export type LocalSendingMessage = {
3
3
  [key: string]: any;
4
4
  };
5
5
  export declare function localSendingMessages(db: Database): QueryExecResult[];
@@ -1,5 +1,5 @@
1
1
  import { Database, QueryExecResult } from '@jlongster/sql.js';
2
- export declare type LocalStranger = {
2
+ export type LocalStranger = {
3
3
  [key: string]: any;
4
4
  };
5
5
  export declare function localStranger(db: Database): QueryExecResult[];
@@ -1,5 +1,5 @@
1
1
  import { Database, QueryExecResult } from '@jlongster/sql.js';
2
- export declare type ClientGroup = {
2
+ export type ClientGroup = {
3
3
  [key: string]: unknown;
4
4
  };
5
5
  export declare function localSuperGroups(db: Database): QueryExecResult[];
@@ -1,5 +1,5 @@
1
1
  import { Database, QueryExecResult } from '@jlongster/sql.js';
2
- export declare type LocalTableMaster = {
2
+ export type LocalTableMaster = {
3
3
  [key: string]: any;
4
4
  };
5
5
  export declare function getExistedTables(db: Database): QueryExecResult[];
@@ -1,5 +1,5 @@
1
1
  import { Database, QueryExecResult } from '@jlongster/sql.js';
2
- export declare type ClientUpload = {
2
+ export type ClientUpload = {
3
3
  [key: string]: unknown;
4
4
  };
5
5
  export declare function localUploads(db: Database): QueryExecResult[];
@@ -1,5 +1,5 @@
1
1
  import { Database, QueryExecResult } from '@jlongster/sql.js';
2
- export declare type ClientUser = {
2
+ export type ClientUser = {
3
3
  [key: string]: unknown;
4
4
  };
5
5
  export declare function localUsers(db: Database): QueryExecResult[];
@@ -1,5 +1,5 @@
1
1
  import { Database, QueryExecResult } from '@jlongster/sql.js';
2
- export declare type LocalVersionSync = {
2
+ export type LocalVersionSync = {
3
3
  [key: string]: any;
4
4
  };
5
5
  export declare function localVersionSyncs(db: Database): QueryExecResult[];
@@ -1,5 +1,5 @@
1
1
  import { Database, QueryExecResult } from '@jlongster/sql.js';
2
- export declare type TempCacheClientMessage = {
2
+ export type TempCacheClientMessage = {
3
3
  [key: string]: any;
4
4
  };
5
5
  export declare function tempCacheLocalChatLogs(db: Database): QueryExecResult[];