@imam-inter/wasm-client-sdk 3.8.4-patch-pin.22 → 3.8.4-patch-pin.23

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/index.es.js CHANGED
@@ -1484,6 +1484,20 @@ class SDK extends Emitter {
1484
1484
  this.getSelfUserInfo = (operationID = v4()) => {
1485
1485
  return this._invoker('getSelfUserInfo', window.getSelfUserInfo, [operationID]);
1486
1486
  };
1487
+ this.setMessagePin = (params, operationID = v4()) => {
1488
+ return this._invoker('setMessagePin', window.setMessagePin, [
1489
+ operationID,
1490
+ params.conversationID,
1491
+ params.seq,
1492
+ params.pinned,
1493
+ ]);
1494
+ };
1495
+ this.getMessagePin = (params, operationID = v4()) => {
1496
+ return this._invoker('getMessagePin', window.getMessagePin, [
1497
+ operationID,
1498
+ params.conversationID,
1499
+ ]);
1500
+ };
1487
1501
  this.getUsersInfo = (data, operationID = v4()) => {
1488
1502
  return this._invoker('getUsersInfo', window.getUsersInfo, [operationID, JSON.stringify(data)]);
1489
1503
  };
@@ -2124,6 +2138,11 @@ class SDK extends Emitter {
2124
2138
  }),
2125
2139
  ]);
2126
2140
  };
2141
+ this.getMsgPinInfo = (operationID = v4()) => {
2142
+ return this._invoker('getMsgPinInfo', window.getMsgPinInfo, [
2143
+ operationID,
2144
+ ]);
2145
+ };
2127
2146
  this.fileMapSet = (uuid, file) => window.fileMapSet(uuid, file);
2128
2147
  // Reset any previous state before initializing
2129
2148
  reset();
package/lib/index.js CHANGED
@@ -1488,6 +1488,20 @@ class SDK extends Emitter {
1488
1488
  this.getSelfUserInfo = (operationID = v4()) => {
1489
1489
  return this._invoker('getSelfUserInfo', window.getSelfUserInfo, [operationID]);
1490
1490
  };
1491
+ this.setMessagePin = (params, operationID = v4()) => {
1492
+ return this._invoker('setMessagePin', window.setMessagePin, [
1493
+ operationID,
1494
+ params.conversationID,
1495
+ params.seq,
1496
+ params.pinned,
1497
+ ]);
1498
+ };
1499
+ this.getMessagePin = (params, operationID = v4()) => {
1500
+ return this._invoker('getMessagePin', window.getMessagePin, [
1501
+ operationID,
1502
+ params.conversationID,
1503
+ ]);
1504
+ };
1491
1505
  this.getUsersInfo = (data, operationID = v4()) => {
1492
1506
  return this._invoker('getUsersInfo', window.getUsersInfo, [operationID, JSON.stringify(data)]);
1493
1507
  };
@@ -2128,6 +2142,11 @@ class SDK extends Emitter {
2128
2142
  }),
2129
2143
  ]);
2130
2144
  };
2145
+ this.getMsgPinInfo = (operationID = v4()) => {
2146
+ return this._invoker('getMsgPinInfo', window.getMsgPinInfo, [
2147
+ operationID,
2148
+ ]);
2149
+ };
2131
2150
  this.fileMapSet = (uuid, file) => window.fileMapSet(uuid, file);
2132
2151
  // Reset any previous state before initializing
2133
2152
  reset();
package/lib/index.umd.js CHANGED
@@ -1490,6 +1490,20 @@
1490
1490
  this.getSelfUserInfo = (operationID = v4()) => {
1491
1491
  return this._invoker('getSelfUserInfo', window.getSelfUserInfo, [operationID]);
1492
1492
  };
1493
+ this.setMessagePin = (params, operationID = v4()) => {
1494
+ return this._invoker('setMessagePin', window.setMessagePin, [
1495
+ operationID,
1496
+ params.conversationID,
1497
+ params.seq,
1498
+ params.pinned,
1499
+ ]);
1500
+ };
1501
+ this.getMessagePin = (params, operationID = v4()) => {
1502
+ return this._invoker('getMessagePin', window.getMessagePin, [
1503
+ operationID,
1504
+ params.conversationID,
1505
+ ]);
1506
+ };
1493
1507
  this.getUsersInfo = (data, operationID = v4()) => {
1494
1508
  return this._invoker('getUsersInfo', window.getUsersInfo, [operationID, JSON.stringify(data)]);
1495
1509
  };
@@ -2130,6 +2144,11 @@
2130
2144
  }),
2131
2145
  ]);
2132
2146
  };
2147
+ this.getMsgPinInfo = (operationID = v4()) => {
2148
+ return this._invoker('getMsgPinInfo', window.getMsgPinInfo, [
2149
+ operationID,
2150
+ ]);
2151
+ };
2133
2152
  this.fileMapSet = (uuid, file) => window.fileMapSet(uuid, file);
2134
2153
  // Reset any previous state before initializing
2135
2154
  reset();
@@ -1,6 +1,6 @@
1
1
  import Emitter from '../utils/emitter';
2
2
  import { AccessFriendApplicationParams, AccessGroupApplicationParams, AccessMessageParams, AddFriendParams, AdvancedMsgParams, AdvancedQuoteMsgParams, AtMsgParams, ChangeGroupMemberMuteParams, ChangeGroupMuteParams, CreateGroupParams, CustomMsgParams, CustomSignalParams, FaceMessageParams, FileMsgParamsByURL, FindMessageParams, GetAdvancedHistoryMsgParams, GetGroupMemberByTimeParams, GetGroupMemberParams, GetGroupMessageReaderParams, GetHistoryMsgParams, GetOneConversationParams, ImageMsgParamsByURL, InitConfig, LoginConfig, InitAndLoginConfig, InsertGroupMsgParams, InsertSingleMsgParams, AccessToGroupParams, SetConversationRecvOptParams, JoinGroupParams, LocationMsgParams, UpdateMemberInfoParams, MergerMsgParams, PartialUserItem, SetConversationPinParams, QuoteMsgParams, RemarkFriendParams, RtcActionParams, SearchFriendParams, SearchGroupMemberParams, SearchGroupParams, SearchLocalParams, SendGroupReadReceiptParams, SendMsgParams, SetBurnDurationParams, SetConversationMsgDestructParams, SetConversationMsgDestructTimeParams, SetConversationDraftParams, SetGroupRoleParams, SetGroupVerificationParams, SetMemberPermissionParams, SetMessageLocalExParams, SetConversationPrivateStateParams, SignalingInviteParams, SoundMsgParamsByURL, SplitConversationParams, TransferGroupParams, TypingUpdateParams, UploadFileParams, VideoMsgParamsByURL, SetGroupMemberNickParams, WasmPathConfig, PinFriendParams, SetFriendExParams, SetConversationExParams, AddBlackParams, OffsetParams, UpdateFriendsParams, SetConversationParams, GetSpecifiedFriendsParams, ChangeInputStatesParams, GetInputstatesParams, FetchSurroundingParams } from '../types/params';
3
- import { AdvancedGetMessageResult, BlackUserItem, CallingRoomData, CardElem, ConversationItem, FriendApplicationItem, FriendshipInfo, FriendUserItem, GroupApplicationItem, GroupItem, GroupMemberItem, MessageItem, OfflinePush, PublicUserItem, RtcInvite, RtcInviteResults, SearchedFriendsInfo, SearchMessageResult, SelfUserInfo, UserOnlineState, WsResponse } from '../types/entity';
3
+ import { AdvancedGetMessageResult, BlackUserItem, CallingRoomData, CardElem, ConversationItem, FriendApplicationItem, FriendshipInfo, FriendUserItem, GroupApplicationItem, GroupItem, GroupMemberItem, MessageItem, OfflinePush, PublicUserItem, RtcInvite, RtcInviteResults, SearchedFriendsInfo, SearchMessageResult, SelfUserInfo, UserOnlineState, WsResponse, type MsgPinInfo, SetMsgPinInfo, GetMsgPinInfo } from '../types/entity';
4
4
  import { LoginStatus, MessageReceiveOptType, Platform } from '../types/enum';
5
5
  declare class SDK extends Emitter {
6
6
  private wasmInitializedPromise;
@@ -57,6 +57,8 @@ declare class SDK extends Emitter {
57
57
  networkStatusChanged: <T>(operationID?: string) => Promise<WsResponse<T>>;
58
58
  getLoginUserID: (operationID?: string) => Promise<WsResponse<string>>;
59
59
  getSelfUserInfo: (operationID?: string) => Promise<WsResponse<SelfUserInfo>>;
60
+ setMessagePin: <T>(params: SetMsgPinInfo, operationID?: string) => Promise<WsResponse<T>>;
61
+ getMessagePin: (params: GetMsgPinInfo, operationID?: string) => Promise<WsResponse<MsgPinInfo[]>>;
60
62
  getUsersInfo: (data: string[], operationID?: string) => Promise<WsResponse<PublicUserItem[]>>;
61
63
  /**
62
64
  * @deprecated Use setSelfInfo instead.
@@ -226,6 +228,7 @@ declare class SDK extends Emitter {
226
228
  signalingSendCustomSignal: <T>(data: CustomSignalParams, operationID?: string) => Promise<WsResponse<T>>;
227
229
  setConversationIsMsgDestruct: <T>(data: SetConversationMsgDestructParams, operationID?: string) => Promise<WsResponse<T>>;
228
230
  setConversationMsgDestructTime: <T>(data: SetConversationMsgDestructTimeParams, operationID?: string) => Promise<WsResponse<T>>;
231
+ getMsgPinInfo: (operationID?: string) => Promise<WsResponse<MsgPinInfo>>;
229
232
  fileMapSet: (uuid: string, file: File) => Promise<any>;
230
233
  }
231
234
  export declare function getSDK(config?: WasmPathConfig): SDK;
@@ -470,3 +470,11 @@ export type CallingRoomData = {
470
470
  invitation?: RtcInvite;
471
471
  roomID: string;
472
472
  };
473
+ export type SetMsgPinInfo = {
474
+ conversationID: string;
475
+ seq: number;
476
+ pinned: boolean;
477
+ };
478
+ export type GetMsgPinInfo = {
479
+ conversationID: string;
480
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imam-inter/wasm-client-sdk",
3
- "version": "3.8.4-patch-pin.22",
3
+ "version": "3.8.4-patch-pin.23",
4
4
  "description": "open im sdk for web",
5
5
  "source": "src/index.ts",
6
6
  "main": "lib/index.js",