|
|
|
|
@ -1,22 +1,28 @@ |
|
|
|
|
import { IUIKitInteraction } from '@rocket.chat/apps-engine/definition/uikit'; |
|
|
|
|
|
|
|
|
|
import { IEmailInbox } from '../../../definition/IEmailInbox'; |
|
|
|
|
import { IEmoji } from '../../../definition/IEmoji'; |
|
|
|
|
import { IInquiry } from '../../../definition/IInquiry'; |
|
|
|
|
import { IInstanceStatus } from '../../../definition/IInstanceStatus'; |
|
|
|
|
import { IIntegration } from '../../../definition/IIntegration'; |
|
|
|
|
import { IIntegrationHistory } from '../../../definition/IIntegrationHistory'; |
|
|
|
|
import { ILivechatDepartmentAgents } from '../../../definition/ILivechatDepartmentAgents'; |
|
|
|
|
import { ILoginServiceConfiguration } from '../../../definition/ILoginServiceConfiguration'; |
|
|
|
|
import { IMessage } from '../../../definition/IMessage'; |
|
|
|
|
import { INotificationDesktop } from '../../../definition/INotification'; |
|
|
|
|
import { IPbxEvent } from '../../../definition/IPbxEvent'; |
|
|
|
|
import { IRole } from '../../../definition/IRole'; |
|
|
|
|
import { IRoom } from '../../../definition/IRoom'; |
|
|
|
|
import { ISetting } from '../../../definition/ISetting'; |
|
|
|
|
import { ISocketConnection } from '../../../definition/ISocketConnection'; |
|
|
|
|
import { ISubscription } from '../../../definition/ISubscription'; |
|
|
|
|
import { IUser } from '../../../definition/IUser'; |
|
|
|
|
import { IEmoji } from '../../../definition/IEmoji'; |
|
|
|
|
import { IUserStatus } from '../../../definition/IUserStatus'; |
|
|
|
|
import { IUserSession } from '../../../definition/IUserSession'; |
|
|
|
|
import { ILoginServiceConfiguration } from '../../../definition/ILoginServiceConfiguration'; |
|
|
|
|
import { IInstanceStatus } from '../../../definition/IInstanceStatus'; |
|
|
|
|
import { IIntegrationHistory } from '../../../definition/IIntegrationHistory'; |
|
|
|
|
import { ILivechatDepartmentAgents } from '../../../definition/ILivechatDepartmentAgents'; |
|
|
|
|
import { IIntegration } from '../../../definition/IIntegration'; |
|
|
|
|
import { IEmailInbox } from '../../../definition/IEmailInbox'; |
|
|
|
|
import { ISocketConnection } from '../../../definition/ISocketConnection'; |
|
|
|
|
import { IPbxEvent } from '../../../definition/IPbxEvent'; |
|
|
|
|
import { IUserStatus } from '../../../definition/IUserStatus'; |
|
|
|
|
import { AutoUpdateRecord } from '../types/IMeteor'; |
|
|
|
|
import { IInvite } from '../../../definition/IInvite'; |
|
|
|
|
import { IWebdavAccount } from '../../../definition/IWebdavAccount'; |
|
|
|
|
import { ICustomSound } from '../../../definition/ICustomSound'; |
|
|
|
|
|
|
|
|
|
type ClientAction = 'inserted' | 'updated' | 'removed' | 'changed'; |
|
|
|
|
|
|
|
|
|
@ -37,7 +43,36 @@ export type EventSignatures = { |
|
|
|
|
'livechat-inquiry-queue-observer'(data: { action: string; inquiry: IInquiry }): void; |
|
|
|
|
'message'(data: { action: string; message: IMessage }): void; |
|
|
|
|
'meteor.clientVersionUpdated'(data: AutoUpdateRecord): void; |
|
|
|
|
'notify.desktop'(uid: string, data: INotificationDesktop): void; |
|
|
|
|
'notify.uiInteraction'(uid: string, data: IUIKitInteraction): void; |
|
|
|
|
'notify.updateInvites'(uid: string, data: { invite: IInvite }): void; |
|
|
|
|
'notify.ephemeralMessage'(uid: string, rid: string, message: Partial<IMessage>): void; |
|
|
|
|
'notify.webdav'( |
|
|
|
|
uid: string, |
|
|
|
|
data: |
|
|
|
|
| { |
|
|
|
|
type: 'changed'; |
|
|
|
|
account: Partial<IWebdavAccount>; |
|
|
|
|
} |
|
|
|
|
| { |
|
|
|
|
type: 'removed'; |
|
|
|
|
account: { _id: IWebdavAccount['_id'] }; |
|
|
|
|
}, |
|
|
|
|
): void; |
|
|
|
|
'notify.e2e.keyRequest'(rid: string, data: IRoom['e2eKeyId']): void; |
|
|
|
|
'notify.deleteMessage'(rid: string, data: { _id: string }): void; |
|
|
|
|
'notify.deleteMessageBulk'( |
|
|
|
|
rid: string, |
|
|
|
|
data: { |
|
|
|
|
rid: string; |
|
|
|
|
excludePinned: boolean; |
|
|
|
|
ignoreDiscussion: boolean; |
|
|
|
|
ts: Record<string, Date>; |
|
|
|
|
users: string[]; |
|
|
|
|
}, |
|
|
|
|
): void; |
|
|
|
|
'notify.deleteCustomSound'(data: { soundData: ICustomSound }): void; |
|
|
|
|
'notify.updateCustomSound'(data: { soundData: ICustomSound }): void; |
|
|
|
|
'permission.changed'(data: { clientAction: ClientAction; data: any }): void; |
|
|
|
|
'room'(data: { action: string; room: Partial<IRoom> }): void; |
|
|
|
|
'room.avatarUpdate'(room: Partial<IRoom>): void; |
|
|
|
|
|