1 | import { _Promise } from 'bluebird';
|
2 | /**
|
3 | * Simple enum so the error processors can returns something that indicates the check
|
4 | * completed and no problems were found.
|
5 | */
|
6 | export declare enum CheckStatus {
|
7 | OK = 0
|
8 | }
|
9 | /**
|
10 | * Returns an array of processors used to determine if an error can be further refined. Instead of
|
11 | * adding more error handing logic to index.js add it here, as it's much easier to unit test.
|
12 | * @param appConfig - the sfdx configuration
|
13 | * @param context - the cli context
|
14 | * @param err - a potentially course grained error thrown by the cli.
|
15 | */
|
16 | export declare function getProcessors(appConfig: any, context: any, err: any): Array<_Promise>;
|
17 | /**
|
18 | * Check is there is an invalid grant with oauth or a 404 response from the server.
|
19 | * @param appConfig - sfdx configuration
|
20 | * @param context - cli context
|
21 | * @param err - an error from the cli
|
22 | */
|
23 | export declare function checkOauthAnd404(appConfig: any, context: any, err: any): CheckStatus;
|
24 | /**
|
25 | * Check that the servers api version is <= to the local config apiVersion.
|
26 | * @param context - the cli context that contains an org
|
27 | * @param _err - an error thrown by the cli
|
28 | */
|
29 | export declare function checkVersionMisMatchAsync(context: any, _err: any): Promise<CheckStatus>;
|
30 | /**
|
31 | * Check to see if the throw error is a server 500. THis error is critical. If a database is being update in production
|
32 | * This error is throw after a rest style connection. It's imperative that customer's get a link to http://trust.salesforce.com
|
33 | * @param _err - an error to process thrown by the cli.
|
34 | */
|
35 | export declare function checkServer500(_err: any): CheckStatus;
|
36 | export declare function checkInvalidLoginUrlWithAccessToken(context: any, err: any): CheckStatus;
|