org-oauth-apps.ts 1.0 KB

12345678910111213141516171819202122232425262728
  1. // @ts-nocheck
  2. import { SHORTCUT_REFERENCE_GROUPS } from '../referenceGroups'
  3. import { RegistryDefinations } from '../types'
  4. export const ORG_OAUTH_APPS_SHORTCUT_IDS = {
  5. ORG_OAUTH_APPS_PUBLISH: 'org.oauth-apps-publish',
  6. ORG_OAUTH_APPS_SUBMIT: 'org.oauth-apps-submit',
  7. } as const
  8. export type OrgOAuthAppsShortcutId =
  9. (typeof ORG_OAUTH_APPS_SHORTCUT_IDS)[keyof typeof ORG_OAUTH_APPS_SHORTCUT_IDS]
  10. export const orgOAuthAppsRegistry: RegistryDefinations<OrgOAuthAppsShortcutId> = {
  11. [ORG_OAUTH_APPS_SHORTCUT_IDS.ORG_OAUTH_APPS_PUBLISH]: {
  12. id: ORG_OAUTH_APPS_SHORTCUT_IDS.ORG_OAUTH_APPS_PUBLISH,
  13. label: 'Publish OAuth app',
  14. sequence: ['Shift+N'],
  15. referenceGroup: SHORTCUT_REFERENCE_GROUPS.ORG_OAUTH_APPS,
  16. options: { ignoreInputs: true, registerInCommandMenu: true },
  17. },
  18. [ORG_OAUTH_APPS_SHORTCUT_IDS.ORG_OAUTH_APPS_SUBMIT]: {
  19. id: ORG_OAUTH_APPS_SHORTCUT_IDS.ORG_OAUTH_APPS_SUBMIT,
  20. label: 'Confirm OAuth app',
  21. sequence: ['Mod+Enter'],
  22. showInSettings: false,
  23. referenceGroup: SHORTCUT_REFERENCE_GROUPS.ORG_OAUTH_APPS,
  24. },
  25. }