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