org-team.ts 973 B

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