UNPKG

sfdx-hardis

Version:

Swiss-army-knife Toolbox for Salesforce. Allows you to define a complete CD/CD Pipeline. Orchestrate base commands and assist users with interactive wizards

36 lines (35 loc) 2.29 kB
export declare function forceSourcePush(scratchOrgAlias: string, commandThis: any, debug?: boolean, options?: any): Promise<void>; export declare function forceSourcePull(scratchOrgAlias: string, debug?: boolean): Promise<void>; export declare function smartDeploy(packageXmlFile: string, check: boolean | undefined, testlevel: string | undefined, debugMode: boolean | undefined, commandThis: any | undefined, options: { targetUsername: string; conn: any; testClasses: string; postDestructiveChanges?: string; preDestructiveChanges?: string; delta?: boolean; destructiveChangesAfterDeployment?: boolean; extraCommands?: any[]; }): Promise<any>; /** * Returns true when a deploy-check (validate) failed only because of Apex code coverage. * This is used for branchConfig.testCoverageNotBlocking=true, to avoid masking real failures. */ export declare function isDeployCheckCoverageOnlyFailure(jsonResult: any, commandThis: any): boolean; export declare function shortenLogLines(rawLog: string): string; export declare function buildDeployOnChangePackageXml(debugMode: boolean, options?: any): Promise<string | null>; export declare function removePackageXmlContent(packageXmlFile: string, packageXmlFileToRemove: string, removedOnly?: boolean, options?: { debugMode: boolean; keepEmptyTypes: boolean; }): Promise<void>; export declare function deployDestructiveChanges(packageDeletedXmlFile: string, options: any | undefined, commandThis: any): Promise<void>; export declare function deployMetadatas(options?: any): Promise<any>; export declare function buildOrgManifest(targetOrgUsernameAlias: any, packageXmlOutputFile?: string | null, conn?: any | null): Promise<string>; /** * Creates an empty package.xml file in a temporary directory and returns its path * Useful for deployment scenarios requiring an empty package.xml (like destructive changes) * @returns {Promise<string>} Path to the created empty package.xml file */ export declare function createEmptyPackageXml(): Promise<string>; export declare function extractOrgCoverageFromLog(stdout: any): Promise<any>; export declare function checkDeploymentOrgCoverage(orgCoverage: number, options: any): Promise<void>; export declare function generateApexCoverageOutputFile(): Promise<void>;