platform/models/love/src/plugin.ts

53 lines
1.8 KiB
TypeScript
Raw Normal View History

//
// Copyright © 2024 Hardcore Engineering Inc.
//
// 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 Client, type Doc, type Ref } from '@hcengineering/core'
import { type NotificationType, type NotificationGroup } from '@hcengineering/notification'
import { type Resource, mergeIds } from '@hcengineering/platform'
import { type AnyComponent } from '@hcengineering/ui'
import { type ActionCategory, type ViewAction } from '@hcengineering/view'
import { loveId } from '@hcengineering/love'
import love from '@hcengineering/love-resources/src/plugin'
export default mergeIds(loveId, love, {
component: {
Main: '' as AnyComponent,
WorkbenchExtension: '' as AnyComponent,
2024-09-18 02:27:13 +00:00
Settings: '' as AnyComponent,
LoveWidget: '' as AnyComponent,
MeetingWidget: '' as AnyComponent
},
app: {
Love: '' as Ref<Doc>
},
category: {
Office: '' as Ref<ActionCategory>
},
actionImpl: {
ToggleMic: '' as ViewAction,
ToggleVideo: '' as ViewAction,
ShowRoomSettings: '' as ViewAction,
CopyGuestLink: '' as ViewAction
},
ids: {
Settings: '' as Ref<Doc>,
LoveNotificationGroup: '' as Ref<NotificationGroup>,
MeetingMinutesChatNotification: '' as Ref<NotificationType>
},
function: {
MeetingMinutesTitleProvider: '' as Resource<(client: Client, ref: Ref<Doc>, doc?: Doc) => Promise<string>>
}
})