// // Copyright © 2020 Anticrm Platform Contributors. // // Licensed under the Eclipse Public License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. You may // obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // // See the License for the specific language governing permissions and // limitations under the License. // import type { ActivityMessage } from '@hcengineering/activity' import { chunterId, type Channel } from '@hcengineering/chunter' import chunter from '@hcengineering/chunter-resources/src/plugin' import { type Client, type Doc, type Ref } from '@hcengineering/core' import { type NotificationGroup } from '@hcengineering/notification' import type { IntlString, Resource } from '@hcengineering/platform' import { mergeIds } from '@hcengineering/platform' import type { AnyComponent, Location } from '@hcengineering/ui/src/types' import type { Action, ActionCategory, ViewAction, Viewlet, ViewletDescriptor } from '@hcengineering/view' import { type WidgetTab } from '@hcengineering/workbench' export default mergeIds(chunterId, chunter, { component: { ChannelPresenter: '' as AnyComponent, DmPresenter: '' as AnyComponent, ChannelsPanel: '' as AnyComponent, Chat: '' as AnyComponent, ChatWidget: '' as AnyComponent, ChatWidgetTab: '' as AnyComponent, ChatMessageNotificationLabel: '' as AnyComponent, ThreadNotificationPresenter: '' as AnyComponent, JoinChannelNotificationPresenter: '' as AnyComponent }, action: { MarkCommentUnread: '' as Ref, MarkUnread: '' as Ref, ArchiveChannel: '' as Ref, UnarchiveChannel: '' as Ref, ConvertToPrivate: '' as Ref, CopyChatMessageLink: '' as Ref>, ReplyToThreadAction: '' as Ref }, actionImpl: { ArchiveChannel: '' as ViewAction, UnarchiveChannel: '' as ViewAction, ConvertDmToPrivateChannel: '' as ViewAction, DeleteChatMessage: '' as ViewAction, ReplyToThread: '' as ViewAction, OpenInSidebar: '' as ViewAction, TranslateMessage: '' as ViewAction, ShowOriginalMessage: '' as ViewAction }, category: { Chunter: '' as Ref }, activity: { ChannelCreatedMessage: '' as AnyComponent }, string: { ApplicationLabelChunter: '' as IntlString, MentionedIn: '' as IntlString, Content: '' as IntlString, Comment: '' as IntlString, Reference: '' as IntlString, CreateBy: '' as IntlString, Create: '' as IntlString, Edit: '' as IntlString, MarkUnread: '' as IntlString, LastMessage: '' as IntlString, MentionNotification: '' as IntlString, PinnedMessages: '' as IntlString, SavedMessages: '' as IntlString, Emoji: '' as IntlString, DM: '' as IntlString, DMNotification: '' as IntlString, ConfigLabel: '' as IntlString, ConfigDescription: '' as IntlString, Reacted: '' as IntlString, RepliedToThread: '' as IntlString, ChannelMessages: '' as IntlString, JoinChannel: '' as IntlString }, viewlet: { Chat: '' as Ref, Channels: '' as Ref }, ids: { ChunterNotificationGroup: '' as Ref }, space: { General: '' as Ref, Random: '' as Ref }, function: { GetLink: '' as Resource<(doc: Doc, props: Record) => Promise>, GetFragment: '' as Resource<(doc: Doc, props: Record) => Promise>, DmIdentifierProvider: '' as Resource<(client: Client, ref: Ref, doc?: T) => Promise>, CanDeleteMessage: '' as Resource<(doc?: Doc | Doc[]) => Promise>, CanCopyMessageLink: '' as Resource<(doc?: Doc | Doc[]) => Promise>, GetChunterSpaceLinkFragment: '' as Resource<(doc: Doc, props: Record) => Promise>, GetThreadLink: '' as Resource<(doc: Doc, props: Record) => Promise>, ReplyToThread: '' as Resource<(doc: ActivityMessage, event: MouseEvent) => Promise>, CanReplyToThread: '' as Resource<(doc?: Doc | Doc[]) => Promise>, GetMessageLink: '' as Resource<(doc: Doc, props: Record) => Promise>, CloseChatWidgetTab: '' as Resource<(tab: WidgetTab) => Promise> }, filter: { ChatMessagesFilter: '' as Resource<(message: ActivityMessage, _class?: Ref) => boolean> } })