platform/services/github/model-github/src/plugin.ts
Andrey Sobolev ddecae80dd
Move services to public (#6156)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
2024-07-28 14:55:43 +07:00

69 lines
2.4 KiB
TypeScript

//
// Copyright © 2023 Hardcore Engineering Inc.
//
import { mergeIds, type IntlString, type Resource } from '@hcengineering/platform'
import { githubId } from '@hcengineering/github'
import github from '@hcengineering/github-resources/src/plugin'
import { type ChatMessageViewlet } from '@hcengineering/chunter'
import { type Doc, type Ref, type Space } from '@hcengineering/core'
import { type DocCreateFunction, type ObjectSearchCategory } from '@hcengineering/model-presentation'
import { type NotificationGroup } from '@hcengineering/notification'
import type { AnyComponent } from '@hcengineering/ui'
import { type ActionCategory, type Viewlet } from '@hcengineering/view'
export default mergeIds(githubId, github, {
component: {
Connect: '' as AnyComponent,
Configure: '' as AnyComponent,
PullRequestPresenter: '' as AnyComponent,
TitlePresenter: '' as AnyComponent,
PullRequestNotificationPresenter: '' as AnyComponent,
AuthenticationCheck: '' as AnyComponent,
GithubIssueHeader: '' as AnyComponent,
GithubReviewPresenter: '' as AnyComponent,
GithubReviewThreadPresenter: '' as AnyComponent,
MergeableValuePresenter: '' as AnyComponent,
PullRequestStateValuePresenter: '' as AnyComponent,
PullRequestReviewDecisionValuePresenter: '' as AnyComponent,
PullRequestMergeState: '' as AnyComponent
},
completion: {
PullRequestCategory: '' as Ref<ObjectSearchCategory>
},
string: {
ConfigLabel: '' as IntlString,
ConfigDescription: '' as IntlString,
PRFile: '' as IntlString,
PRReview: '' as IntlString,
PRCommit: '' as IntlString,
PRDraft: '' as IntlString,
PRMergedAt: '' as IntlString,
PRClosedAt: '' as IntlString,
MergeCommitSHA: '' as IntlString,
GithubIssue: '' as IntlString,
Mergeable: '' as IntlString,
GithubUser: '' as IntlString,
PullRequestMergeState: '' as IntlString,
PullRequestReviewDecision: '' as IntlString
},
viewlet: {
PullRequests: '' as Ref<Viewlet>
},
functions: {
ShowForRepositoryOnly: '' as Resource<(spaces: Space[]) => Promise<boolean>>,
UpdateIssue: '' as Resource<DocCreateFunction>
},
ids: {
AssigneeNotification: '' as Ref<Doc>,
GithubNotificationGroup: '' as Ref<NotificationGroup>,
GitHubPullRequestChatMessageViewlet: '' as Ref<ChatMessageViewlet>
},
category: {
Github: '' as Ref<ActionCategory>
}
})