@tencentcloud/chat-uikit-engine 3.0.0-beta.0 → 3.0.0-beta.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/index.d.ts +28 -2
- package/index.js +1 -1
- package/package.json +3 -5
package/index.d.ts
CHANGED
|
@@ -37,6 +37,7 @@ interface IConversationModel {
|
|
|
37
37
|
deleteConversation(): Promise<any>;
|
|
38
38
|
pinConversation(): Promise<any>;
|
|
39
39
|
muteConversation(): Promise<any>;
|
|
40
|
+
setMessageRead(): Promise<any>;
|
|
40
41
|
getAvatar(): string;
|
|
41
42
|
getShowName(): string;
|
|
42
43
|
getGroupAtInfo(): string;
|
|
@@ -175,8 +176,14 @@ interface MuteConversationParams {
|
|
|
175
176
|
userIDList?: string[];
|
|
176
177
|
messageRemindType: TencentCloudChat.TYPES;
|
|
177
178
|
}
|
|
179
|
+
interface MarkConversationParams {
|
|
180
|
+
conversationIDList: string[];
|
|
181
|
+
markType: number;
|
|
182
|
+
enableMark: boolean;
|
|
183
|
+
}
|
|
178
184
|
interface SetConversationDraftParams {
|
|
179
185
|
conversationID: string;
|
|
186
|
+
draftText?: string;
|
|
180
187
|
draftInfo?: {
|
|
181
188
|
html: string;
|
|
182
189
|
abstract: string;
|
|
@@ -517,6 +524,19 @@ interface DeleteFriendApplicationParams {
|
|
|
517
524
|
userID: string;
|
|
518
525
|
type: TencentCloudChat.TYPES;
|
|
519
526
|
}
|
|
527
|
+
interface FriendGroup {
|
|
528
|
+
name: string;
|
|
529
|
+
friendList: Friend[];
|
|
530
|
+
count: number;
|
|
531
|
+
}
|
|
532
|
+
interface FriendGroupParams {
|
|
533
|
+
name: string;
|
|
534
|
+
userIDList: string[];
|
|
535
|
+
}
|
|
536
|
+
interface RenameFriendGroupParams {
|
|
537
|
+
oldName: string;
|
|
538
|
+
newName: string;
|
|
539
|
+
}
|
|
520
540
|
|
|
521
541
|
interface IEventCenter {
|
|
522
542
|
addEvent(event: string, callback: func): void;
|
|
@@ -539,8 +559,10 @@ interface ITUIConversationService {
|
|
|
539
559
|
deleteConversation(conversationID: string): Promise<any>;
|
|
540
560
|
pinConversation(options: PinConversationParams): Promise<any>;
|
|
541
561
|
muteConversation(options: MuteConversationParams): Promise<any>;
|
|
562
|
+
setMessageRead(conversationID: string): Promise<any>;
|
|
542
563
|
clearHistoryMessage(conversationID: string): Promise<any>;
|
|
543
564
|
setConversationDraft(options: SetConversationDraftParams): Promise<any>;
|
|
565
|
+
markConversation(options: MarkConversationParams): Promise<any>;
|
|
544
566
|
}
|
|
545
567
|
|
|
546
568
|
declare enum MountedList {
|
|
@@ -613,7 +635,6 @@ declare class ChatEngine implements ITUIChatEngine {
|
|
|
613
635
|
private initOptionalServices;
|
|
614
636
|
private createChat;
|
|
615
637
|
private loginChat;
|
|
616
|
-
private registerPlugin;
|
|
617
638
|
private onSDKReady;
|
|
618
639
|
private onSDKNotReady;
|
|
619
640
|
private checkCommercialAbility;
|
|
@@ -739,6 +760,11 @@ interface ITUIFriendService {
|
|
|
739
760
|
refuseFriendApplication(userID: string): Promise<any>;
|
|
740
761
|
deleteFriendApplication(options: DeleteFriendApplicationParams): Promise<any>;
|
|
741
762
|
setFriendApplicationRead(): Promise<any>;
|
|
763
|
+
createFriendGroup(options: FriendGroupParams): Promise<any>;
|
|
764
|
+
deleteFriendGroup(name: string): Promise<any>;
|
|
765
|
+
addToFriendGroup(options: FriendGroupParams): Promise<any>;
|
|
766
|
+
removeFromFriendGroup(options: FriendGroupParams): Promise<any>;
|
|
767
|
+
renameFriendGroup(options: RenameFriendGroupParams): Promise<any>;
|
|
742
768
|
}
|
|
743
769
|
|
|
744
770
|
interface ITUIReportService {
|
|
@@ -792,4 +818,4 @@ declare const tuiFriend: ITUIFriendService;
|
|
|
792
818
|
declare const tuiReport: ITUIReportService;
|
|
793
819
|
declare const tuiSearch: ITUISearchService;
|
|
794
820
|
|
|
795
|
-
export { AcceptFriendApplicationParams, AddFriendParams, AddMemberParams, ChangGroupOwnerParams, CheckFriendParams, ConvertVoiceToTextParams, CountersParams, CreateGroupParams, DeleteFriendApplicationParams, DeleteFriendParams, DeleteMemberParams, ForwardMessageParams, Friend, FriendApplication, GetAllUserListOfMessageReactionParams, GetFriendProfileParams, GetGroupMessageReadParams, GetGroupProfileParams, GetMemberListParams, GetMemberProfileParams, GetMessageListHoppingParams, GetMessageListParams, GetMessageReactionsParams, GroupAttrParams, GroupServiceBasicParams, GroupType, IConversationModel, IGroupModel, IMessageModel, IResultMap, ISearchCloudGroupsResultItem, ISearchCloudMessagesResultItem, ISearchCloudUsersResultItem, ISearchParamsMap, ISearchResult, ISearchType, JoinGroupParams, KeyListParams, LoginParams, MarkMemberParams, MessageControlInfo, MessageType, ModifyMessageParams, MuteConversationParams, OfflinePushInfo, PinConversationParams, ReactionInfo, SEARCH_TYPE, SearchCloudGroupMembersParams, SearchCloudGroupsParams, SearchCloudMessagesParams, SearchCloudUsersParams, SendForwardMessageMergeInfo, SendForwardMessageOptions, SendMessageOptions, SendMessageParams, SetConversationDraftParams, SetCountersParams, SetMemberCustomFiledParams, SetMemberMuteParams, SetMemberNameCardParams, SetMemberRoleParams, StoreName, SwitchUserStatusParams, TUIChatEngine, tuiChat as TUIChatService, tuiConversation as TUIConversationService, tuiFriend as TUIFriendService, tuiGlobal as TUIGlobal, tuiGroup as TUIGroupService, tuiReport as TUIReportService, tuiSearch as TUISearchService, tuiStore as TUIStore, tuiTranslate as TUITranslateService, tuiUser as TUIUserService, TranslateTextParams, UpdateFriendParams, UpdateGroupParams, UpdateMyProfileParams, UserIDListParams, TUIChatEngine as default, func, handleGroupApplicationParams };
|
|
821
|
+
export { AcceptFriendApplicationParams, AddFriendParams, AddMemberParams, ChangGroupOwnerParams, CheckFriendParams, ConvertVoiceToTextParams, CountersParams, CreateGroupParams, DeleteFriendApplicationParams, DeleteFriendParams, DeleteMemberParams, ForwardMessageParams, Friend, FriendApplication, FriendGroup, FriendGroupParams, GetAllUserListOfMessageReactionParams, GetFriendProfileParams, GetGroupMessageReadParams, GetGroupProfileParams, GetMemberListParams, GetMemberProfileParams, GetMessageListHoppingParams, GetMessageListParams, GetMessageReactionsParams, GroupAttrParams, GroupServiceBasicParams, GroupType, IConversationModel, IGroupModel, IMessageModel, IResultMap, ISearchCloudGroupsResultItem, ISearchCloudMessagesResultItem, ISearchCloudUsersResultItem, ISearchParamsMap, ISearchResult, ISearchType, JoinGroupParams, KeyListParams, LoginParams, MarkConversationParams, MarkMemberParams, MessageControlInfo, MessageType, ModifyMessageParams, MuteConversationParams, OfflinePushInfo, PinConversationParams, ReactionInfo, RenameFriendGroupParams, SEARCH_TYPE, SearchCloudGroupMembersParams, SearchCloudGroupsParams, SearchCloudMessagesParams, SearchCloudUsersParams, SendForwardMessageMergeInfo, SendForwardMessageOptions, SendMessageOptions, SendMessageParams, SetConversationDraftParams, SetCountersParams, SetMemberCustomFiledParams, SetMemberMuteParams, SetMemberNameCardParams, SetMemberRoleParams, StoreName, SwitchUserStatusParams, TUIChatEngine, tuiChat as TUIChatService, tuiConversation as TUIConversationService, tuiFriend as TUIFriendService, tuiGlobal as TUIGlobal, tuiGroup as TUIGroupService, tuiReport as TUIReportService, tuiSearch as TUISearchService, tuiStore as TUIStore, tuiTranslate as TUITranslateService, tuiUser as TUIUserService, TranslateTextParams, UpdateFriendParams, UpdateGroupParams, UpdateMyProfileParams, UserIDListParams, TUIChatEngine as default, func, handleGroupApplicationParams };
|