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

38 lines (37 loc) 2.27 kB
import { Connection } from '@salesforce/core'; 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>; 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 executePrePostCommands(property: 'commandsPreDeploy' | 'commandsPostDeploy', options: { success: boolean; checkOnly: boolean; conn: Connection; extraCommands?: any[]; }): Promise<void>; export declare function extractOrgCoverageFromLog(stdout: any): Promise<any>; export declare function checkDeploymentOrgCoverage(orgCoverage: number, options: any): Promise<void>; export declare function generateApexCoverageOutputFile(): Promise<void>;