org-team.ts27 lines · main
| 1 | // @ts-nocheck |
| 2 | import { SHORTCUT_REFERENCE_GROUPS } from '../referenceGroups' |
| 3 | import { RegistryDefinations } from '../types' |
| 4 | |
| 5 | export const ORG_TEAM_SHORTCUT_IDS = { |
| 6 | ORG_TEAM_INVITE: 'org.team-invite', |
| 7 | ORG_TEAM_INVITE_SUBMIT: 'org.team-invite-submit', |
| 8 | } as const |
| 9 | |
| 10 | export type OrgTeamShortcutId = (typeof ORG_TEAM_SHORTCUT_IDS)[keyof typeof ORG_TEAM_SHORTCUT_IDS] |
| 11 | |
| 12 | export const orgTeamRegistry: RegistryDefinations<OrgTeamShortcutId> = { |
| 13 | [ORG_TEAM_SHORTCUT_IDS.ORG_TEAM_INVITE]: { |
| 14 | id: ORG_TEAM_SHORTCUT_IDS.ORG_TEAM_INVITE, |
| 15 | label: 'Invite members', |
| 16 | sequence: ['Shift+N'], |
| 17 | referenceGroup: SHORTCUT_REFERENCE_GROUPS.ORG_TEAM, |
| 18 | options: { ignoreInputs: true, registerInCommandMenu: true }, |
| 19 | }, |
| 20 | [ORG_TEAM_SHORTCUT_IDS.ORG_TEAM_INVITE_SUBMIT]: { |
| 21 | id: ORG_TEAM_SHORTCUT_IDS.ORG_TEAM_INVITE_SUBMIT, |
| 22 | label: 'Send invitation(s)', |
| 23 | sequence: ['Mod+Enter'], |
| 24 | showInSettings: false, |
| 25 | referenceGroup: SHORTCUT_REFERENCE_GROUPS.ORG_TEAM, |
| 26 | }, |
| 27 | } |