microsoft/vscode-react-native
Publicmirrored from https://github.com/microsoft/vscode-react-nativeAvailable
src/extension/appcenter/appCenterConstants.ts
40lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | // Licensed under the MIT license. See LICENSE file in the project root for details. |
| 3 | |
| 4 | |
| 5 | export class ACConstants { |
| 6 | public static ExtensionPrefixName: string = "reactNative"; |
| 7 | public static AppCenterExtensionName: string = "appcenter"; |
| 8 | public static DefaulAPIEndPoint: string = "https://api.appcenter.ms"; |
| 9 | public static DefaultLoginEndPoint: string = "https://appcenter.ms/cli-login"; |
| 10 | public static CodePushNpmPackageName: string = "react-native-code-push"; |
| 11 | } |
| 12 | |
| 13 | export class ACCommandNames { |
| 14 | public static CommandPrefix: string = ACConstants.AppCenterExtensionName + "."; |
| 15 | public static Login: string = ACCommandNames.CommandPrefix + "login"; |
| 16 | public static Logout: string = ACCommandNames.CommandPrefix + "logout"; |
| 17 | public static WhoAmI: string = ACCommandNames.CommandPrefix + "whoami"; |
| 18 | public static SetCurrentApp: string = ACCommandNames.CommandPrefix + "setcurrentapp"; |
| 19 | public static GetCurrentApp: string = ACCommandNames.CommandPrefix + "getcurrentapp"; |
| 20 | public static CodePushReleaseReact: string = ACCommandNames.CommandPrefix + "releasereact"; |
| 21 | } |
| 22 | |
| 23 | export enum AppCenterLoginType { |
| 24 | Interactive, |
| 25 | Token, |
| 26 | } |
| 27 | |
| 28 | export enum AppCenterCommandType { |
| 29 | // Auth commands |
| 30 | Login, |
| 31 | Logout, |
| 32 | Whoami, |
| 33 | |
| 34 | // App commands |
| 35 | SetCurrentApp, |
| 36 | GetCurrentApp, |
| 37 | |
| 38 | // CodePush commands |
| 39 | CodePushReleaseReact, |
| 40 | } |