@droppii-org/wasm-client-sdk 0.1.0 → 0.1.2
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 +7 -2
- package/lib/index.js +6 -1
- package/lib/index.umd.js +6 -1
- package/lib/sdk/index.d.ts +3 -3
- package/lib/types/entity.d.ts +1 -0
- package/lib/types/enum.d.ts +4 -0
- package/lib/types/params.d.ts +7 -1
- package/lib/worker-legacy.js +1 -1
- package/lib/worker.js +1 -1
- package/package.json +1 -1
package/lib/index.es.js
CHANGED
|
@@ -1156,7 +1156,12 @@ var GroupMessageReaderFilter;
|
|
|
1156
1156
|
(function (GroupMessageReaderFilter) {
|
|
1157
1157
|
GroupMessageReaderFilter[GroupMessageReaderFilter["Read"] = 0] = "Read";
|
|
1158
1158
|
GroupMessageReaderFilter[GroupMessageReaderFilter["UnRead"] = 1] = "UnRead";
|
|
1159
|
-
})(GroupMessageReaderFilter || (GroupMessageReaderFilter = {}));
|
|
1159
|
+
})(GroupMessageReaderFilter || (GroupMessageReaderFilter = {}));
|
|
1160
|
+
var ViewType;
|
|
1161
|
+
(function (ViewType) {
|
|
1162
|
+
ViewType[ViewType["History"] = 0] = "History";
|
|
1163
|
+
ViewType[ViewType["Search"] = 1] = "Search";
|
|
1164
|
+
})(ViewType || (ViewType = {}));
|
|
1160
1165
|
|
|
1161
1166
|
class SDK extends Emitter {
|
|
1162
1167
|
constructor(url = '/openIM.wasm', debug = true) {
|
|
@@ -2169,4 +2174,4 @@ var indexeddbMainThreadWorkerB24e7a21 = /*#__PURE__*/Object.freeze({
|
|
|
2169
2174
|
'default': WorkerFactory
|
|
2170
2175
|
});
|
|
2171
2176
|
|
|
2172
|
-
export { AllowType, ApplicationHandleResult, CbEvents, GroupAtType, GroupJoinSource, GroupMemberFilter, GroupMemberRole, GroupMessageReaderFilter, GroupStatus, GroupType, GroupVerificationType, LogLevel, LoginStatus, MessageReceiveOptType, MessageStatus, MessageType, OnlineState, Platform, Relationship, SessionType, getSDK };
|
|
2177
|
+
export { AllowType, ApplicationHandleResult, CbEvents, GroupAtType, GroupJoinSource, GroupMemberFilter, GroupMemberRole, GroupMessageReaderFilter, GroupStatus, GroupType, GroupVerificationType, LogLevel, LoginStatus, MessageReceiveOptType, MessageStatus, MessageType, OnlineState, Platform, Relationship, SessionType, ViewType, getSDK };
|
package/lib/index.js
CHANGED
|
@@ -1160,7 +1160,12 @@ exports.GroupMessageReaderFilter = void 0;
|
|
|
1160
1160
|
(function (GroupMessageReaderFilter) {
|
|
1161
1161
|
GroupMessageReaderFilter[GroupMessageReaderFilter["Read"] = 0] = "Read";
|
|
1162
1162
|
GroupMessageReaderFilter[GroupMessageReaderFilter["UnRead"] = 1] = "UnRead";
|
|
1163
|
-
})(exports.GroupMessageReaderFilter || (exports.GroupMessageReaderFilter = {}));
|
|
1163
|
+
})(exports.GroupMessageReaderFilter || (exports.GroupMessageReaderFilter = {}));
|
|
1164
|
+
exports.ViewType = void 0;
|
|
1165
|
+
(function (ViewType) {
|
|
1166
|
+
ViewType[ViewType["History"] = 0] = "History";
|
|
1167
|
+
ViewType[ViewType["Search"] = 1] = "Search";
|
|
1168
|
+
})(exports.ViewType || (exports.ViewType = {}));
|
|
1164
1169
|
|
|
1165
1170
|
class SDK extends Emitter {
|
|
1166
1171
|
constructor(url = '/openIM.wasm', debug = true) {
|
package/lib/index.umd.js
CHANGED
|
@@ -1162,7 +1162,12 @@
|
|
|
1162
1162
|
(function (GroupMessageReaderFilter) {
|
|
1163
1163
|
GroupMessageReaderFilter[GroupMessageReaderFilter["Read"] = 0] = "Read";
|
|
1164
1164
|
GroupMessageReaderFilter[GroupMessageReaderFilter["UnRead"] = 1] = "UnRead";
|
|
1165
|
-
})(exports.GroupMessageReaderFilter || (exports.GroupMessageReaderFilter = {}));
|
|
1165
|
+
})(exports.GroupMessageReaderFilter || (exports.GroupMessageReaderFilter = {}));
|
|
1166
|
+
exports.ViewType = void 0;
|
|
1167
|
+
(function (ViewType) {
|
|
1168
|
+
ViewType[ViewType["History"] = 0] = "History";
|
|
1169
|
+
ViewType[ViewType["Search"] = 1] = "Search";
|
|
1170
|
+
})(exports.ViewType || (exports.ViewType = {}));
|
|
1166
1171
|
|
|
1167
1172
|
class SDK extends Emitter {
|
|
1168
1173
|
constructor(url = '/openIM.wasm', debug = true) {
|
package/lib/sdk/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Emitter from '../utils/emitter';
|
|
2
|
-
import { AccessFriendApplicationParams, AccessGroupApplicationParams, AccessMessageParams, AddFriendParams, AdvancedMsgParams, AdvancedQuoteMsgParams, AtMsgParams, ChangeGroupMemberMuteParams, ChangeGroupMuteParams, CreateGroupParams, CustomMsgParams, CustomSignalParams, FaceMessageParams, FileMsgParamsByURL, FindMessageParams, GetAdvancedHistoryMsgParams, GetGroupMemberByTimeParams, GetGroupMemberParams, GetGroupMessageReaderParams, GetHistoryMsgParams, GetOneConversationParams, ImageMsgParamsByURL, 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, SplitConversationAppParams, GetPinnedMessageListParams, TransferGroupParams, TypingUpdateParams, UploadFileParams, VideoMsgParamsByURL, SetGroupMemberNickParams, WasmPathConfig, PinFriendParams, SetFriendExParams, SetConversationExParams, AddBlackParams, OffsetParams, UpdateFriendsParams, SetConversationParams, GetSpecifiedFriendsParams, ChangeInputStatesParams, GetInputstatesParams } from '../types/params';
|
|
2
|
+
import { AccessFriendApplicationParams, AccessGroupApplicationParams, AccessMessageParams, AddFriendParams, AdvancedMsgParams, AdvancedQuoteMsgParams, AtMsgParams, ChangeGroupMemberMuteParams, ChangeGroupMuteParams, CreateGroupParams, CustomMsgParams, CustomSignalParams, FaceMessageParams, FileMsgParamsByURL, FindMessageParams, GetAdvancedHistoryMsgParams, GetAdvancedHistoryMsgAppParams, GetGroupMemberByTimeParams, GetGroupMemberParams, GetGroupMessageReaderParams, GetHistoryMsgParams, GetOneConversationParams, ImageMsgParamsByURL, 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, SplitConversationAppParams, GetPinnedMessageListParams, TransferGroupParams, TypingUpdateParams, UploadFileParams, VideoMsgParamsByURL, SetGroupMemberNickParams, WasmPathConfig, PinFriendParams, SetFriendExParams, SetConversationExParams, AddBlackParams, OffsetParams, UpdateFriendsParams, SetConversationParams, GetSpecifiedFriendsParams, ChangeInputStatesParams, GetInputstatesParams } from '../types/params';
|
|
3
3
|
import { AdvancedGetMessageResult, BlackUserItem, CallingRoomData, CardElem, ConversationItem, FriendApplicationItem, FriendshipInfo, FriendUserItem, GroupApplicationItem, GroupItem, GroupMemberItem, GetPinnedMessageListResult, MessageItem, PinnedMsgInfo, PublicUserItem, RtcInviteResults, SearchedFriendsInfo, SearchMessageResult, SelfUserInfo, UserOnlineState, WsResponse } from '../types/entity';
|
|
4
4
|
import { LoginStatus, MessageReceiveOptType, Platform } from '../types/enum';
|
|
5
5
|
declare class SDK extends Emitter {
|
|
@@ -17,8 +17,8 @@ declare class SDK extends Emitter {
|
|
|
17
17
|
getOneConversation: (params: GetOneConversationParams, operationID?: string) => Promise<WsResponse<ConversationItem>>;
|
|
18
18
|
getAdvancedHistoryMessageList: (params: GetAdvancedHistoryMsgParams, operationID?: string) => Promise<WsResponse<AdvancedGetMessageResult>>;
|
|
19
19
|
getAdvancedHistoryMessageListReverse: (params: GetAdvancedHistoryMsgParams, operationID?: string) => Promise<WsResponse<AdvancedGetMessageResult>>;
|
|
20
|
-
getAdvancedHistoryMessageListApp: (params:
|
|
21
|
-
getAdvancedHistoryMessageListReverseApp: (params:
|
|
20
|
+
getAdvancedHistoryMessageListApp: (params: GetAdvancedHistoryMsgAppParams, operationID?: string) => Promise<WsResponse<AdvancedGetMessageResult>>;
|
|
21
|
+
getAdvancedHistoryMessageListReverseApp: (params: GetAdvancedHistoryMsgAppParams, operationID?: string) => Promise<WsResponse<AdvancedGetMessageResult>>;
|
|
22
22
|
getSpecifiedGroupsInfo: (params: string[], operationID?: string) => Promise<WsResponse<GroupItem[]>>;
|
|
23
23
|
deleteConversationAndDeleteAllMsg: <T>(conversationID: string, operationID?: string) => Promise<WsResponse<T>>;
|
|
24
24
|
markConversationMessageAsRead: <T>(data: string, operationID?: string) => Promise<WsResponse<T>>;
|
package/lib/types/entity.d.ts
CHANGED
package/lib/types/enum.d.ts
CHANGED
package/lib/types/params.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MessageEntity, OfflinePush, PicBaseInfo, AtUsersInfoItem, MessageItem, SelfUserInfo, RtcInvite, GroupItem } from './entity';
|
|
2
|
-
import { AllowType, GroupJoinSource, GroupVerificationType, MessageType, MessageReceiveOptType, GroupMemberRole, GroupMemberFilter, LogLevel, GroupMessageReaderFilter, GroupAtType } from './enum';
|
|
2
|
+
import { AllowType, GroupJoinSource, GroupVerificationType, MessageType, MessageReceiveOptType, GroupMemberRole, GroupMemberFilter, LogLevel, GroupMessageReaderFilter, GroupAtType, ViewType } from './enum';
|
|
3
3
|
export declare type WasmPathConfig = {
|
|
4
4
|
coreWasmPath?: string;
|
|
5
5
|
sqlWasmPath?: string;
|
|
@@ -28,6 +28,12 @@ export declare type GetAdvancedHistoryMsgParams = {
|
|
|
28
28
|
startClientMsgID: string;
|
|
29
29
|
conversationID: string;
|
|
30
30
|
};
|
|
31
|
+
export declare type GetAdvancedHistoryMsgAppParams = {
|
|
32
|
+
conversationID: string;
|
|
33
|
+
startClientMsgID: string;
|
|
34
|
+
count: number;
|
|
35
|
+
viewType: ViewType;
|
|
36
|
+
};
|
|
31
37
|
export declare type GetHistoryMsgParams = {
|
|
32
38
|
userID: string;
|
|
33
39
|
groupID: string;
|