import { SfCommand } from '@salesforce/sf-plugins-core'; import { Interfaces } from '@oclif/core'; import { PipelineStage, PromoteOptions } from '../index.js'; import type { AsyncOperationResultJson } from '../../common/index.js'; import { AsyncCommand } from './abstractAsyncOperation.js'; export type Flags = Interfaces.InferredFlags<(typeof PromoteCommand)['baseFlags'] & T['flags']>; export declare abstract class PromoteCommand extends AsyncCommand { static readonly enableJsonFlag = true; static baseFlags: { 'branch-name': Interfaces.OptionFlag; 'bundle-version-name': Interfaces.OptionFlag; 'deploy-all': Interfaces.BooleanFlag; 'devops-center-project-name': Interfaces.OptionFlag; 'devops-center-username': Interfaces.OptionFlag; tests: Interfaces.OptionFlag; 'test-level': Interfaces.OptionFlag; async: Interfaces.BooleanFlag; wait: Interfaces.OptionFlag; verbose: Interfaces.BooleanFlag; concise: Interfaces.BooleanFlag; 'flags-dir': import("@oclif/core/interfaces").OptionFlag; }; protected flags: Flags; private targetStage; private sourceStageId; private deployOptions; private numRetries409; init(): Promise; protected executePromotion(): Promise; /** * * Sends an Http request to the target org to initiate a promotion. * * @returns Aor Id of promote operation. */ protected requestPromotionFlow(): Promise; /** * * Sends an Http request to the target org to initiate a promotion. * If it gets a 409/Conflict it will retry till the request successes, * gets a differenct error or run out of retry attempts. * * @param numRetries Amount of remaining retry attempts. * @returns Aor Id of promote operation */ protected retryRequestPromotion(numRetries: number): Promise; protected getTargetStage(): PipelineStage; private requestPromotion; private buildPromoteOptions; /** * Knows how to compute the target pipeline stage Id based on the type of promotion. * * @returns: string. It is the source stage Id. */ protected abstract getSourceStageId(): string; /** * Returns the specific promote options specific for every concrete implementations. * * @returns: Partial. */ protected abstract getPromoteOptions(): Partial; }