microsoft/vscode-react-native

Public

mirrored from https://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
bb685befdbe7e88c8b5573661cf3dfa5d48a4001

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

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
5export 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
13export 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
23export enum AppCenterLoginType {
24 Interactive,
25 Token,
26}
27
28export 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}